ACF_Admin_UI_Options_Page::post_submitbox_misc_actionspublicACF 5.2.9

This function will customize the publish metabox

Method of the class: ACF_Admin_UI_Options_Page{}

No Hooks.

Returns

null. Nothing (null).

Usage

$ACF_Admin_UI_Options_Page = new ACF_Admin_UI_Options_Page();
$ACF_Admin_UI_Options_Page->post_submitbox_misc_actions();

Changelog

Since 5.2.9 Introduced.

ACF_Admin_UI_Options_Page::post_submitbox_misc_actions() code ACF 6.8.8

<?php
public function post_submitbox_misc_actions() {
	global $acf_ui_options_page;

	$status_label = $acf_ui_options_page['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
}