acf_admin_field_group::post_submitbox_misc_actions
This function will customize the publish metabox
Метод класса: acf_admin_field_group{}
Хуков нет.
Возвращает
null. Ничего (null).
Использование
$acf_admin_field_group = new acf_admin_field_group(); $acf_admin_field_group->post_submitbox_misc_actions();
Список изменений
| С версии 5.2.9 | Введена. |
Код acf_admin_field_group::post_submitbox_misc_actions() acf admin field group::post submitbox misc actions ACF 6.4.2
<?php
public function post_submitbox_misc_actions() {
global $field_group;
$status_label = $field_group['active'] ? _x( 'Active', 'post status', 'acf' ) : _x( 'Inactive', 'post status', 'acf' );
?>
<script type="text/javascript">
(function($) {
$('#post-status-display').html( '<?php echo esc_html( $status_label ); ?>' );
})(jQuery);
</script>
<?php
}