Or, embed this snippet using GenerateWP WordPress Plugin.

Download

Clone

custom_post_status_pending

// Register Custom Status
function custom_post_status() {

	$args = array(
		'label'                     => _x( 'pending', 'Status General Name', 'text_domain' ),
		'label_count'               => _n_noop( 'Pending (%s)',  'Pending (%s)', 'text_domain' ), 
		'public'                    => true,
		'show_in_admin_all_list'    => true,
		'show_in_admin_status_list' => true,
		'exclude_from_search'       => false,
	);
	register_post_status( 'pending', $args );

}

// Hook into the 'init' action
add_action( 'init', 'custom_post_status', 0 );