Simple Product
Simple Product
// Register Custom Post Type function SimpleProduct() { $labels = array( 'name' => _x( 'Simple Products', 'Post Type General Name', 'SimpleProduct' ), 'singular_name' => _x( 'Simple Product', 'Post Type Singular Name', 'SimpleProduct' ), 'menu_name' => __( 'Simple Products', 'SimpleProduct' ), 'name_admin_bar' => __( 'Simple Product', 'SimpleProduct' ), 'archives' => __( 'Simple Product', 'SimpleProduct' ), 'attributes' => __( 'Simple Product Attributes', 'SimpleProduct' ), 'parent_item_colon' => __( 'Parent Item:', 'SimpleProduct' ), 'all_items' => __( 'All Simple Product', 'SimpleProduct' ), 'add_new_item' => __( 'Add New Simple Product', 'SimpleProduct' ), 'add_new' => __( 'Add Simple Product', 'SimpleProduct' ), 'new_item' => __( 'New Simple Product', 'SimpleProduct' ), 'edit_item' => __( 'Edit Simple Product', 'SimpleProduct' ), 'update_item' => __( 'Update Simple Product', 'SimpleProduct' ), 'view_item' => __( 'View Simple Product', 'SimpleProduct' ), 'view_items' => __( 'View Simple Product', 'SimpleProduct' ), 'search_items' => __( 'Search Simple Product', 'SimpleProduct' ), 'not_found' => __( 'Not found', 'SimpleProduct' ), 'not_found_in_trash' => __( 'Not found in Trash', 'SimpleProduct' ), 'featured_image' => __( 'Featured Image', 'SimpleProduct' ), 'set_featured_image' => __( 'Set featured image', 'SimpleProduct' ), 'remove_featured_image' => __( 'Remove featured image', 'SimpleProduct' ), 'use_featured_image' => __( 'Use as featured image', 'SimpleProduct' ), 'insert_into_item' => __( 'Insert into Simple Product', 'SimpleProduct' ), 'uploaded_to_this_item' => __( 'Uploaded to this Simple Product', 'SimpleProduct' ), 'items_list' => __( 'Items Simple Products', 'SimpleProduct' ), 'items_list_navigation' => __( 'Items Simple Products navigation', 'SimpleProduct' ), 'filter_items_list' => __( 'Filter Simple Product list', 'SimpleProduct' ), ); $args = array( 'label' => __( 'Simple Product', 'SimpleProduct' ), 'description' => __( 'Simple Product for creation of a box', 'SimpleProduct' ), 'labels' => $labels, 'supports' => array( 'title', 'editor', 'thumbnail', 'custom-fields' ), 'taxonomies' => array( 'category', 'post_tag' ), 'hierarchical' => false, 'public' => true, 'show_ui' => true, 'show_in_menu' => true, 'menu_position' => 25, 'menu_icon' => 'dashicons-screenoptions', '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( 'SimpleProduct', $args ); } add_action( 'init', 'SimpleProduct', 0 );