Or, embed this snippet using GenerateWP WordPress Plugin.

Download

Clone

Project canceled status

Project cpt custom canceled status

if ( ! function_exists('project_post_status') ) {

// Register Custom Status
function project_post_status() {

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

}

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

}