acf_admin_field_group::admin_enqueue_scripts
Enqueues any scripts necessary for internal post type.
Метод класса: acf_admin_field_group{}
Хуки из метода
Возвращает
null. Ничего (null).
Использование
$acf_admin_field_group = new acf_admin_field_group(); $acf_admin_field_group->admin_enqueue_scripts();
Список изменений
| С версии 5.0.0 | Введена. |
Код acf_admin_field_group::admin_enqueue_scripts() acf admin field group::admin enqueue scripts ACF 6.4.2
public function admin_enqueue_scripts() {
parent::admin_enqueue_scripts();
acf_localize_text(
array(
'The string "field_" may not be used at the start of a field name' => esc_html__( 'The string "field_" may not be used at the start of a field name', 'acf' ),
'This field cannot be moved until its changes have been saved' => esc_html__( 'This field cannot be moved until its changes have been saved', 'acf' ),
'Field group title is required' => esc_html__( 'Field group title is required', 'acf' ),
'Move field group to trash?' => esc_html__( 'Move field group to trash?', 'acf' ),
'No toggle fields available' => esc_html__( 'No toggle fields available', 'acf' ),
'Move Custom Field' => esc_html__( 'Move Custom Field', 'acf' ),
'Close modal' => esc_html__( 'Close modal', 'acf' ),
'Field moved to other group' => esc_html__( 'Field moved to other group', 'acf' ),
'Field groups linked successfully.' => esc_html__( 'Field groups linked successfully.', 'acf' ),
'Checked' => esc_html__( 'Checked', 'acf' ),
'(no label)' => esc_html__( '(no label)', 'acf' ),
'(this field)' => esc_html__( '(this field)', 'acf' ),
'copy' => esc_html__( 'copy', 'acf' ),
'or' => esc_html__( 'or', 'acf' ),
'Show this field group if' => esc_html__( 'Show this field group if', 'acf' ),
'Null' => esc_html__( 'Null', 'acf' ),
'PRO Only' => esc_html__( 'PRO Only', 'acf' ),
// Conditions.
'Has any value' => esc_html__( 'Has any value', 'acf' ),
'Has no value' => esc_html__( 'Has no value', 'acf' ),
'Value is equal to' => esc_html__( 'Value is equal to', 'acf' ),
'Value is not equal to' => esc_html__( 'Value is not equal to', 'acf' ),
'Value matches pattern' => esc_html__( 'Value matches pattern', 'acf' ),
'Value contains' => esc_html__( 'Value contains', 'acf' ),
'Value is greater than' => esc_html__( 'Value is greater than', 'acf' ),
'Value is less than' => esc_html__( 'Value is less than', 'acf' ),
'Selection is greater than' => esc_html__( 'Selection is greater than', 'acf' ),
'Selection is less than' => esc_html__( 'Selection is less than', 'acf' ),
'Relationship is equal to' => esc_html__( 'Relationship is equal to', 'acf' ),
'Relationship is not equal to' => esc_html__( 'Relationship is not equal to', 'acf' ),
'Relationships contain' => esc_html__( 'Relationships contain', 'acf' ),
'Relationships do not contain' => esc_html__( 'Relationships do not contain', 'acf' ),
'Post is equal to' => esc_html__( 'Post is equal to', 'acf' ),
'Post is not equal to' => esc_html__( 'Post is not equal to', 'acf' ),
'Posts contain' => esc_html__( 'Posts contain', 'acf' ),
'Posts do not contain' => esc_html__( 'Posts do not contain', 'acf' ),
'Has any post selected' => esc_html__( 'Has any post selected', 'acf' ),
'Has no post selected' => esc_html__( 'Has no post selected', 'acf' ),
'Has any relationship selected' => esc_html__( 'Has any relationship selected', 'acf' ),
'Has no relationship selected' => esc_html__( 'Has no relationship selected', 'acf' ),
'Page is equal to' => esc_html__( 'Page is equal to', 'acf' ),
'Page is not equal to' => esc_html__( 'Page is not equal to', 'acf' ),
'Pages contain' => esc_html__( 'Pages contain', 'acf' ),
'Pages do not contain' => esc_html__( 'Pages do not contain', 'acf' ),
'Has any page selected' => esc_html__( 'Has any page selected', 'acf' ),
'Has no page selected' => esc_html__( 'Has no page selected', 'acf' ),
'User is equal to' => esc_html__( 'User is equal to', 'acf' ),
'User is not equal to' => esc_html__( 'User is not equal to', 'acf' ),
'Users contain' => esc_html__( 'Users contain', 'acf' ),
'Users do not contain' => esc_html__( 'Users do not contain', 'acf' ),
'Has any user selected' => esc_html__( 'Has any user selected', 'acf' ),
'Has no user selected' => esc_html__( 'Has no user selected', 'acf' ),
'Term is equal to' => esc_html__( 'Term is equal to', 'acf' ),
'Term is not equal to' => esc_html__( 'Term is not equal to', 'acf' ),
'Terms contain' => esc_html__( 'Terms contain', 'acf' ),
'Terms do not contain' => esc_html__( 'Terms do not contain', 'acf' ),
'Has any term selected' => esc_html__( 'Has any term selected', 'acf' ),
'Has no term selected' => esc_html__( 'Has no term selected', 'acf' ),
// Custom Select2 templates.
'Type to search...' => esc_html__( 'Type to search...', 'acf' ),
'This Field' => esc_html__( 'This Field', 'acf' ),
)
);
acf_localize_data(
array(
'fieldTypes' => acf_get_field_types_info(),
'fieldCategoriesL10n' => acf_get_field_categories_i18n(),
'PROUpgradeURL' => acf_add_url_utm_tags( 'https://www.advancedcustomfields.com/pro/', 'ACF upgrade', 'field-type-selection' ),
'PROFieldTypes' => acf_get_pro_field_types(),
'PROLocationTypes' => array(
'block' => esc_html__( 'Block', 'acf' ),
'options_page' => esc_html__( 'Options Page', 'acf' ),
),
)
);
do_action( 'acf/field_group/admin_enqueue_scripts' );
}