field-advanced-link.php
6 years ago
field-button.php
6 years ago
field-clone.php
6 years ago
field-column.php
6 years ago
field-dynamic-message.php
6 years ago
field-file.php
6 years ago
field-flexible-content.php
6 years ago
field-forms.php
6 years ago
field-group.php
6 years ago
field-hidden.php
6 years ago
field-image.php
6 years ago
field-post-statuses.php
6 years ago
field-post-types.php
6 years ago
field-recaptcha.php
6 years ago
field-repeater.php
6 years ago
field-select.php
6 years ago
field-slug.php
6 years ago
field-taxonomies.php
6 years ago
field-taxonomy-terms.php
6 years ago
field-textarea.php
6 years ago
field-user-roles.php
6 years ago
field-select.php
27 lines
| 1 | <?php |
| 2 | |
| 3 | if(!defined('ABSPATH')) |
| 4 | exit; |
| 5 | |
| 6 | add_action('acf/render_field_settings/type=select', 'acfe_field_select_settings'); |
| 7 | function acfe_field_select_settings($field){ |
| 8 | |
| 9 | // placeholder |
| 10 | acf_render_field_setting($field, array( |
| 11 | 'label' => __('Placeholder Text','acf'), |
| 12 | 'instructions' => __('Appears within the input','acf'), |
| 13 | 'type' => 'text', |
| 14 | 'name' => 'placeholder', |
| 15 | 'placeholder' => _x('Select', 'verb', 'acf'), |
| 16 | 'conditional_logic' => array( |
| 17 | array( |
| 18 | array( |
| 19 | 'field' => 'allow_null', |
| 20 | 'operator' => '==', |
| 21 | 'value' => '1', |
| 22 | ) |
| 23 | ) |
| 24 | ) |
| 25 | )); |
| 26 | |
| 27 | } |