spa services
if ( ! function_exists('spa_services_post_type') ) {
// Register Custom Post Type
function spa_services_post_type() {
$labels = array(
'name' => _x( 'Spa Services', 'Post Type General Name', 'BYT_Theme' ),
'singular_name' => _x( 'Spa Service', 'Post Type Singular Name', 'BYT_Theme' ),
'menu_name' => __( 'Spa Service', 'BYT_Theme' ),
'name_admin_bar' => __( 'Spa Service', 'BYT_Theme' ),
'parent_item_colon' => __( 'Spa Services:', 'BYT_Theme' ),
'all_items' => __( 'All Spa Services', 'BYT_Theme' ),
'add_new_item' => __( 'Add New Spa Services', 'BYT_Theme' ),
'add_new' => __( 'New Spa Services', 'BYT_Theme' ),
'new_item' => __( 'New Item', 'BYT_Theme' ),
'edit_item' => __( 'Edit Product', 'BYT_Theme' ),
'update_item' => __( 'Update Spa Services', 'BYT_Theme' ),
'view_item' => __( 'View Spa Services', 'BYT_Theme' ),
'search_items' => __( 'Search Spa Services', 'BYT_Theme' ),
'not_found' => __( 'No spa services found', 'BYT_Theme' ),
'not_found_in_trash' => __( 'No spa services found in Trash', 'BYT_Theme' ),
);
$args = array(
'label' => __( 'spa_services', 'BYT_Theme' ),
'description' => __( 'Product information pages', 'BYT_Theme' ),
'labels' => $labels,
'supports' => array( 'title', 'editor', 'excerpt', 'author', 'thumbnail', 'comments', 'revisions', 'custom-fields', 'page-attributes', ),
'taxonomies' => array( 'category', 'post_tag', 'service_type' ),
'hierarchical' => true,
'public' => true,
'show_ui' => true,
'show_in_menu' => true,
'menu_position' => 5,
'menu_icon' => 'pamprme.com/icons/spa.png',
'show_in_admin_bar' => true,
'show_in_nav_menus' => true,
'can_export' => true,
'has_archive' => true,
'exclude_from_search' => false,
'publicly_queryable' => true,
'capability_type' => 'page',
);
register_post_type( 'spa_services', $args );
}
// Hook into the 'init' action
add_action( 'init', 'spa_services_post_type', 0 );
}