acf_admin_field_group::post_submitbox_misc_actionspublicACF 5.2.9

This function will customize the publish metabox

Method of the class: acf_admin_field_group{}

No Hooks.

Returns

null. Nothing (null).

Usage

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

Changelog

Since 5.2.9 Introduced.

acf_admin_field_group::post_submitbox_misc_actions() code ACF 6.0.4

<?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
}