Pending Edit Post Status

Home » Snippets » Pending Edit 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 "Pending Edit".
 * 
 * @since 1.0.0
 * 
 * @return void
 */
function wpturbo_register_pending_edit_post_status() : void {
	$args = [
		'label' => __( 'Post Pending Edit', 'wpturbo' ),
		'label_count' => _n_noop( 'Post Pending Edit (%s)',  'Posts Pending Edit (%s)', 'wpturbo' ),
		'public' => false,
		'show_in_admin_all_list' => false,
		'show_in_admin_status_list' => false,
		'exclude_from_search' => false
	];
	register_post_status( 'Pending Edit', $args );
}
add_action( 'init', 'wpturbo_register_pending_edit_post_status', 0 );
			

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