Product How To’s
// Register Custom Post Type
function product_how_to() {
$labels = array(
'name' => _x( 'Product How To's', 'Post Type General Name', 'bhiframework' ),
'singular_name' => _x( 'Product How To', 'Post Type Singular Name', 'bhiframework' ),
'menu_name' => __( 'Product How To's', 'bhiframework' ),
'name_admin_bar' => __( 'Product How To', 'bhiframework' ),
'archives' => __( 'Product How To Archives', 'bhiframework' ),
'attributes' => __( 'Product How To Attributes', 'bhiframework' ),
'parent_item_colon' => __( 'Parent Product How To:', 'bhiframework' ),
'all_items' => __( 'All Product How To's', 'bhiframework' ),
'add_new_item' => __( 'Add New Product How To', 'bhiframework' ),
'add_new' => __( 'Add New', 'bhiframework' ),
'new_item' => __( 'New Product How To', 'bhiframework' ),
'edit_item' => __( 'Edit Product How To', 'bhiframework' ),
'update_item' => __( 'Update Product How To', 'bhiframework' ),
'view_item' => __( 'View Product How To', 'bhiframework' ),
'view_items' => __( 'View Product How To's', 'bhiframework' ),
'search_items' => __( 'Search Product How To', 'bhiframework' ),
'not_found' => __( 'Not found', 'bhiframework' ),
'not_found_in_trash' => __( 'Not found in Trash', 'bhiframework' ),
'featured_image' => __( 'Grid Image', 'bhiframework' ),
'set_featured_image' => __( 'Set grid image', 'bhiframework' ),
'remove_featured_image' => __( 'Remove grid image', 'bhiframework' ),
'use_featured_image' => __( 'Use as grid image', 'bhiframework' ),
'insert_into_item' => __( 'Insert into product how to', 'bhiframework' ),
'uploaded_to_this_item' => __( 'Uploaded to this product how to', 'bhiframework' ),
'items_list' => __( 'Product How To's list', 'bhiframework' ),
'items_list_navigation' => __( 'Product How To's list navigation', 'bhiframework' ),
'filter_items_list' => __( 'Filter product how to's list', 'bhiframework' ),
);
$args = array(
'label' => __( 'Product How To', 'bhiframework' ),
'description' => __( 'Product How To', 'bhiframework' ),
'labels' => $labels,
'supports' => array( 'title', 'editor', 'thumbnail' ),
'hierarchical' => false,
'public' => true,
'show_ui' => true,
'show_in_menu' => true,
'menu_position' => 5,
'menu_icon' => 'dashicons-format-image',
'show_in_admin_bar' => true,
'show_in_nav_menus' => false,
'can_export' => true,
'has_archive' => false,
'exclude_from_search' => false,
'publicly_queryable' => true,
'capability_type' => 'page',
);
register_post_type( 'product_how_to', $args );
}
add_action( 'init', 'product_how_to', 0 );