Post Idea Post Status

Home » Snippets » Post Idea Post Status
0

Created with:

Post status Generator

Visibility: 

public

Creator: WPTurbo Team

Customize with WPTurbo AI
X

Add Snippet To Project

New Project
Add To Existing Project
				/**
 * Registers a custom post status named "Post Idea".
 * 
 * @since 1.0.0
 * 
 * @return void
 */
function wpturbo_register_idea_post_status() : void {
	$args = [
		'label' => __( 'Post Idea', 'wpturbo' ),
		'label_count' => _n_noop( 'Post Idea (%s)',  'Post Ideas (%s)', 'wpturbo' ),
		'public' => false,
		'show_in_admin_all_list' => true,
		'show_in_admin_status_list' => false,
		'exclude_from_search' => true
	];
	register_post_status( 'Post Idea', $args );
}
add_action( 'init', 'wpturbo_register_idea_post_status', 0 );
			

Register an account to save your snippets or go Pro to get more features.