Or, embed this snippet using GenerateWP WordPress Plugin.

Download

Clone

Employees Retired Post Status

Employees Retired Post Status

// Register Custom Status
function retired_status() {

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

}

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