web/wp-content/plugins/acf-extended/includes/field-groups/field-group-instruction-placement.php (22 lines of code) (raw):

<?php if(!defined('ABSPATH')){ exit; } if(!class_exists('acfe_field_group_instruction_placement')): class acfe_field_group_instruction_placement{ /** * construct */ function __construct(){ add_action('acf/field_group/admin_head', array($this, 'admin_head')); } /** * admin_head */ function admin_head(){ add_filter('acf/prepare_field/name=instruction_placement', array($this, 'prepare_instruction_placement')); } /** * prepare_instruction_placement * * @param $field * * @return mixed */ function prepare_instruction_placement($field){ $field['choices'] = array_merge($field['choices'], array( 'above_field' => __('Above fields', 'acfe'), 'tooltip' => __('Tooltip', 'acfe') )); return $field; } } // initialize new acfe_field_group_instruction_placement(); endif;