ACF_Admin_Post_type::post_submitbox_misc_actions
This function will customize the publish metabox
Метод класса: ACF_Admin_Post_type{}
Хуков нет.
Возвращает
null. Ничего (null).
Использование
$ACF_Admin_Post_type = new ACF_Admin_Post_type(); $ACF_Admin_Post_type->post_submitbox_misc_actions();
Список изменений
| С версии 5.2.9 | Введена. |
Код ACF_Admin_Post_type::post_submitbox_misc_actions() ACF Admin Post type::post submitbox misc actions ACF 6.8.8
<?php
public function post_submitbox_misc_actions() {
global $acf_post_type;
$status_label = $acf_post_type['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
}