Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //Add Products Post Type
- function product_register() {
- $args = array(
- 'label' => __('Products'),
- 'singular_label' => __('Product'),
- 'public' => true,
- 'show_ui' => true,
- 'capability_type' => 'post',
- 'hierarchical' => false,
- 'rewrite' => array('slug'=>'products'),
- 'supports' => array('title', 'editor', 'thumbnail', 'excerpt'),
- 'show_in_nav_menus' => true
- );
- register_post_type( 'product' , $args );
- }
- add_action('init', 'product_register');
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement