SHARE
TWEET

Untitled

a guest Sep 18th, 2019 134 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function register_post_ranking() {
  2.    $labels = array(
  3.     'name'               => __( 'Produkt rankingowy', '_tk' ),
  4.     'singular_name'      => __( 'Produkt rankingowy', '_tk' ),
  5.     'add_new'            => __( 'Dodaj nowy Produkt rankingowy', '_tk' ),
  6.     'add_new_item'       => __( 'Dodaj nowy Produkt rankingowy', '_tk' ),
  7.     'edit_item'          => __( 'Edytuj Produkt rankingowy', '_tk' ),
  8.     'new_item'           => __( 'Nowy Produkt rankingowy', '_tk' ),
  9.     'all_items'          => __( 'Wszystkie Produkty rankingowe', '_tk' ),
  10.     'view_item'          => __( 'Zobacz Produkt rankingowy', '_tk' ),
  11.     'search_items'       => __( 'Szukaj Produktu rankingowego', '_tk' ),
  12.     'not_found'          => __( 'Nie zneleziono żadnego Produktu rankingowego', '_tk' ),
  13.     'not_found_in_trash' => __( 'Nie zneleziono żadnego Produktu rankingowego w koszu', '_tk' ),
  14.     'parent_item_colon'  => '',
  15.     'menu_name'          => __( 'Produkt rankingowy', '_tk' ),
  16.    );
  17.    $args = array(
  18.     'labels'            => $labels,
  19.     'hierarchical'      => true,
  20.     'supports'          => array( 'title', 'page-attributes', 'editor', 'revisions', 'thumbnail', 'comments' ),
  21.     'taxonomies'        => array( 'ranking_category' ),
  22.     'public'            => true,
  23.     'show_ui'           => true,
  24.     'show_in_menu'      => true,
  25.     'show_in_nav_menus' => true,
  26.     'publicly_queryable' => true,
  27.     'exclude_from_search' => false,
  28.     'has_archive'       => true,
  29.     'rewrite'           => array('slug' => 'ranking','with_front' => false),
  30.     'menu_position'     => 6,
  31.     'menu_icon'         => 'dashicons-admin-users'
  32.    );
  33.    register_post_type( 'ranking', $args );
  34.  }
  35.  add_action( 'init', 'register_post_ranking' );
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
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top