Post status Generator

Home » WordPress Generators » Post status Generator

Related WordPress generators Post type generator Term meta generator Shortcode generator Go back to all generators

The name of the function that will be created.
Child Theme Support
Allow child themes to override this function.
Text domain translation file name.
Name of your status.
Status name in singular form. Example: Draft
Status name in plural form. Example: Drafts
Don’t Show To Public
Posts that are under this status can be displayed on the front-end of your website.
Don’t Show In ‘All Posts’
Display posts under this status on the All Posts section of admin page.
Don’t Show a List For This Status
Show a list alongside All in the Posts section of Admin dashboard.
                    function wpturbo_register_my_post_status(){
	$args = array(
		'public' => true,
		'show_in_admin_all_list' => false,
		'show_in_admin_status_list' => false,
		'exclude_from_search' => false
	);
	register_post_status( 'My Status', $args );
}
add_action( 'init', 'wpturbo_register_my_post_status', 0 );
                

Sign up to save your WordPress snippets on WPTurbo.