G2A Many GEOs
SHARE
TWEET

Untitled

a guest Oct 18th, 2019 73 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function your_prefix_register_post_type() {
  2.     $args = array (
  3.         'label' => esc_html__( 'Events', 'text-domain' ),
  4.         'labels' => array(
  5.             'menu_name' => esc_html__( 'Events', 'text-domain' ),
  6.             'name_admin_bar' => esc_html__( 'Event', 'text-domain' ),
  7.             'add_new' => esc_html__( 'Add new', 'text-domain' ),
  8.             'add_new_item' => esc_html__( 'Add new Event', 'text-domain' ),
  9.             'new_item' => esc_html__( 'New Event', 'text-domain' ),
  10.             'edit_item' => esc_html__( 'Edit Event', 'text-domain' ),
  11.             'view_item' => esc_html__( 'View Event', 'text-domain' ),
  12.             'update_item' => esc_html__( 'Update Event', 'text-domain' ),
  13.             'all_items' => esc_html__( 'All Events', 'text-domain' ),
  14.             'search_items' => esc_html__( 'Search Events', 'text-domain' ),
  15.             'parent_item_colon' => esc_html__( 'Parent Event', 'text-domain' ),
  16.             'not_found' => esc_html__( 'No Events found', 'text-domain' ),
  17.             'not_found_in_trash' => esc_html__( 'No Events found in Trash', 'text-domain' ),
  18.             'name' => esc_html__( 'Events', 'text-domain' ),
  19.             'singular_name' => esc_html__( 'Event', 'text-domain' ),
  20.         ),
  21.         'public' => true,
  22.         'exclude_from_search' => false,
  23.         'publicly_queryable' => true,
  24.         'show_ui' => true,
  25.         'show_in_nav_menus' => true,
  26.         'show_in_admin_bar' => true,
  27.         'show_in_rest' => true,
  28.         'menu_icon' => 'dashicons-calendar-alt',
  29.         'capability_type' => 'post',
  30.         'hierarchical' => false,
  31.         'has_archive' => true,
  32.         'query_var' => true,
  33.         'can_export' => true,
  34.         'rewrite_no_front' => false,
  35.         'show_in_menu' => true,
  36.         'menu_position' => 7,
  37.         'supports' => array(
  38.             'title',
  39.             'editor',
  40.             'author',
  41.             'thumbnail',
  42.             'excerpt',
  43.             'page-attributes',
  44.         ),
  45.         'yarpp_support' => true,
  46.         'taxonomies' => array(
  47.             'category',
  48.             'post_tag',
  49.         ),
  50.         'rewrite' => true,
  51.     );
  52. }
RAW Paste Data
Ledger Nano X - The secure hardware wallet
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