SHARE
TWEET

Untitled

a guest Apr 23rd, 2019 67 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. $labels = array(
  2.             'name'               => 'Webinars',
  3.             'singular_name'      => 'Webinar',
  4.             'add_new'            => 'Add new',
  5.             'add_new_item'       => 'Add new webinar',
  6.             'edit_item'          => 'Edit',
  7.             'new_item'           => 'New webinar',
  8.             'all_items'          => 'All webinars',
  9.             'view_item'          => 'View webinar',
  10.             'view_items'         => 'View webinars',
  11.             'search_items'       => 'Find',
  12.             'not_found'          => 'Not found',
  13.             'not_found_in_trash' => 'Not found in trash',
  14.             'parent_item_colon'  => '',
  15.             'menu_name'          => 'Webinars',
  16.         );
  17.         $args   = array(
  18.             'labels'            => $labels,
  19.             'public'            => true,
  20.             'show_in_nav_menus' => false,
  21.             'menu_icon'         => 'dashicons-format-video',
  22.             'menu_position'     => 4,
  23.             'has_archive'       => 'webinars',
  24.             'supports'          => [ 'title', 'author', 'thumbnail', 'excerpt' ],
  25.             'capability_type'   => 'webinar',
  26.             'map_meta_cap'      => true,
  27.             '_has_role'         => true,
  28.         );
  29.         register_post_type( 'webinar', $args );
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top