WP_Customize_Nav_Menus::make_auto_draft_status_previewable()

In this article

Makes the auto-draft status protected so that it can be queried.

Source

public function make_auto_draft_status_previewable() {
	global $wp_post_statuses;
	$wp_post_statuses['auto-draft']->protected = true;
}

Changelog

VersionDescription
4.7.0Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.