property_listings statuses
if ( ! function_exists('property_listings_status') ) {
// Register Custom Status
function property_listings_status() {
$args = array(
'label' => _x( 'Sold', 'Status General Name', 'text_domain' ),
'label_count' => _n_noop( 'Sold (%s)', 'Sold (%s)', 'text_domain' ),
'public' => true,
'show_in_admin_all_list' => true,
'show_in_admin_status_list' => true,
'exclude_from_search' => false,
);
register_post_status( 'sold', $args );
}
add_action( 'init', 'property_listings_status', 0 );
}