MOSO APP
if ( ! function_exists('mosoapp_post_type') ) {
// Register Custom Post Type
function mosoapp_post_type() {
$labels = array(
'name' => _x( 'Moso Apps', 'Post Type General Name', 'mosoapp' ),
'singular_name' => _x( 'Moso App', 'Post Type Singular Name', 'mosoapp' ),
'menu_name' => __( 'MOSO Apps', 'mosoapp' ),
'name_admin_bar' => __( 'MOSO App', 'mosoapp' ),
'archives' => __( 'MOSO App Archives', 'mosoapp' ),
'attributes' => __( 'MOSO App Attributes', 'mosoapp' ),
'parent_item_colon' => __( 'Parent MOSO App:', 'mosoapp' ),
'all_items' => __( 'All MOSO Apps', 'mosoapp' ),
'add_new_item' => __( 'Add New MOSO App', 'mosoapp' ),
'add_new' => __( 'Add New', 'mosoapp' ),
'new_item' => __( 'New MOSO App', 'mosoapp' ),
'edit_item' => __( 'Edit MOSO App', 'mosoapp' ),
'update_item' => __( 'Update MOSO App', 'mosoapp' ),
'view_item' => __( 'View MOSO App', 'mosoapp' ),
'view_items' => __( 'View MOSO Apps', 'mosoapp' ),
'search_items' => __( 'Search MOSO App', 'mosoapp' ),
'not_found' => __( 'Not found', 'mosoapp' ),
'not_found_in_trash' => __( 'Not found in Trash', 'mosoapp' ),
'featured_image' => __( 'Featured Image', 'mosoapp' ),
'set_featured_image' => __( 'Set featured image', 'mosoapp' ),
'remove_featured_image' => __( 'Remove featured image', 'mosoapp' ),
'use_featured_image' => __( 'Use as featured image', 'mosoapp' ),
'insert_into_item' => __( 'Insert into MOSO App', 'mosoapp' ),
'uploaded_to_this_item' => __( 'Uploaded to this MOSO App', 'mosoapp' ),
'items_list' => __( 'MOSO Apps list', 'mosoapp' ),
'items_list_navigation' => __( 'MOSO Apps list navigation', 'mosoapp' ),
'filter_items_list' => __( 'Filter MOSO Apps list', 'mosoapp' ),
);
$args = array(
'label' => __( 'Moso App', 'mosoapp' ),
'description' => __( 'Filtrable gallery for Motion Solutions apps', 'mosoapp' ),
'labels' => $labels,
'supports' => array( 'title', 'editor', 'thumbnail' ),
'taxonomies' => array( 'app_category' ),
'hierarchical' => false,
'public' => true,
'show_ui' => true,
'show_in_menu' => true,
'menu_position' => 5,
'menu_icon' => 'dashicons-format-gallery',
'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',
'show_in_rest' => true,
);
register_post_type( 'mosoapp', $args );
}
add_action( 'init', 'mosoapp_post_type', 0 );
}