PluginProbe ʕ •ᴥ•ʔ
Advanced Custom Fields: Extended / 0.8
Advanced Custom Fields: Extended v0.8
0.9.2.6 0.9.2.5 0.8.6 0.8.6.1 0.8.6.3 0.8.6.5 0.8.6.6 0.8.6.7 0.8.6.8 0.8.6.9 0.8.7 0.8.7.1 0.8.7.2 0.8.7.3 0.8.7.4 0.8.7.5 0.8.7.6 0.8.8 0.8.8.1 0.8.8.10 0.8.8.11 0.8.8.2 0.8.8.3 0.8.8.4 0.8.8.5 0.8.8.6 0.8.8.7 0.8.8.8 0.8.8.9 0.8.9 0.8.9.1 0.8.9.2 0.8.9.3 0.8.9.4 0.8.9.5 0.9 0.9.0.1 0.9.0.2 0.9.0.3 0.9.0.4 0.9.0.5 0.9.0.6 0.9.0.7 0.9.0.8 0.9.0.9 0.9.1 0.9.1.1 0.9.2 0.9.2.1 0.9.2.2 0.9.2.3 0.9.2.4 trunk 0.5 0.5.1 0.5.2 0.5.2.1 0.5.2.3 0.5.5 0.5.5.1 0.5.8 0.5.8.1 0.6 0.6.0.1 0.6.0.2 0.6.1 0.6.3 0.6.5 0.6.7 0.6.7.2 0.7 0.7.0.3 0.7.5 0.7.5.5 0.7.8 0.7.9 0.7.9.3 0.7.9.4 0.7.9.9.8 0.7.9.9.9 0.8 0.8.1 0.8.2 0.8.3 0.8.3.1 0.8.4 0.8.4.1 0.8.4.5 0.8.4.6 0.8.5 0.8.5.5
acf-extended / includes / fields-settings / fields.php
acf-extended / includes / fields-settings Last commit date
bidirectional.php 6 years ago data.php 6 years ago fields.php 6 years ago permissions.php 6 years ago settings.php 6 years ago validation.php 6 years ago
fields.php
51 lines
1 <?php
2
3 if(!defined('ABSPATH'))
4 exit;
5
6 add_filter('acf/pre_render_fields', 'acfe_fields_wrapper_instructions', 10, 2);
7 function acfe_fields_wrapper_instructions($fields, $post_id){
8
9 $tooltip = false;
10
11 if(isset($fields[0])){
12
13 $field_group = acfe_get_field_group_from_field($fields[0]);
14
15 if(!$field_group)
16 return $fields;
17
18 if($field_group['instruction_placement'] === 'acfe_instructions_tooltip'){
19
20 foreach($fields as &$field){
21
22 acfe_field_add_key_recursive($field, 'acfe_instructions_tooltip', ($field['instructions'] ? acf_esc_html($field['instructions']) : ''));
23
24 }
25
26 }
27
28 }
29
30 return $fields;
31
32 }
33
34 add_filter('acf/field_wrapper_attributes', 'acfe_fields_wrapper', 10, 2);
35 function acfe_fields_wrapper($wrapper, $field){
36
37 if(!acf_maybe_get($field, 'label')){
38
39 $wrapper['class'] .= ' acfe-no-label';
40
41 }
42
43 if(acf_maybe_get($field, 'acfe_instructions_tooltip')){
44
45 $wrapper['data-acfe-instructions-tooltip'] = acf_esc_html($field['acfe_instructions_tooltip']);
46
47 }
48
49 return $wrapper;
50
51 }