ACF_Admin_Taxonomy::post_submitbox_misc_actionspublicACF 5.2.9

This function will customize the publish metabox

Method of the class: ACF_Admin_Taxonomy{}

No Hooks.

Returns

null. Nothing (null).

Usage

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

Changelog

Since 5.2.9 Introduced.

ACF_Admin_Taxonomy::post_submitbox_misc_actions() code ACF 6.8.8

<?php
public function post_submitbox_misc_actions() {
	global $acf_taxonomy;
	$status_label = $acf_taxonomy['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
}