WordPress Post Status Generator is a tool that helps you to generate custom post statuses for your WordPress projects.
function wp_skills_custom_post_status() : void {
$args = [
'label' => __( 'Draft', 'text-domain' ),
'label_count' => _n_noop( 'Draft (%s)', 'Drafts (%s)', 'text-domain' ),
'public' => true,
'show_in_admin_all_list' => true,
'show_in_admin_status_list' => true,
'exclude_from_search' => false
];
register_post_status( 'My Status', $args );
}
add_action( 'init', 'wp_skills_custom_post_status', 0 );