Or, embed this snippet using GenerateWP WordPress Plugin.

Download

Clone

xyz

xyz

// Register Custom Status
function custom_post_status() {

	$args = array(
		'label'                     => _x( 'xyz', 'Status General Name', 'text_domain' ),
		'label_count'               => _n_noop( 'xyz (%s)',  'xyz (%s)', 'text_domain' ), 
	);
	register_post_status( 'xyz', $args );

}
add_action( 'init', 'custom_post_status', 0 );