Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function wow_theme_testimonial_post(){
- register_post_type('testimonial',
- array(
- 'labels' => array(
- 'add_new' => esc_html_x('Add New', 'testimonial', 'wow-shop'),
- 'add_new_item' => esc_html__('Add New Testimonial', 'wow-shop'),
- 'all_items' => esc_html__('Testimonials', 'wow-shop'),
- 'edit_item' => esc_html__('Edit Testimonial', 'wow-shop'),
- 'menu_name' => 'Testimonials',
- 'name' => esc_html_x('Testimonials', 'post type general name', 'wow-shop'),
- 'new_item' => esc_html__('New Testimonial', 'wow-shop'),
- 'not_found' => esc_html__('No testimonial found', 'wow-shop'),
- 'not_found_in_trash' => esc_html__('No testimonial found in Trash', 'wow-shop'),
- 'parent_item_colon' => '',
- 'search_items' => esc_html__('Search', 'wow-shop'),
- 'singular_name' => esc_html_x('Testimonial', 'post type singular name', 'wow-shop'),
- 'view_item' => esc_html__('View Testimonial', 'wow-shop'),
- ),
- 'exclude_from_search' => false,
- 'public' => false,
- 'publicly_queryable' => true,
- 'show_ui' => true,
- 'menu_icon' => 'dashicons-editor-quote',
- 'rewrite' => array('slug' => 'testimonial'),
- 'supports' => array(
- 'title',
- 'editor',
- 'revisions',
- 'thumbnail',
- 'page-attributes',
- ),
- )
- );
- }
- add_action('init', 'wow_theme_testimonial_post');
Advertisement
Add Comment
Please, Sign In to add comment