Advertisement
Guest User

Untitled

a guest
Apr 28th, 2017
55
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.78 KB | None | 0 0
  1.     /**
  2.      * Post Type: Работы.
  3.      */
  4.  
  5.     $labels = array(
  6.         "name" => __( 'Работы', '' ),
  7.         "singular_name" => __( 'Работы', '' ),
  8.     );
  9.  
  10.     $args = array(
  11.         "label" => __( 'Работы', '' ),
  12.         "labels" => $labels,
  13.         "description" => "",
  14.         "public" => true,
  15.         "publicly_queryable" => true,
  16.         "show_ui" => true,
  17.         "show_in_rest" => false,
  18.         "rest_base" => "",
  19.         "has_archive" => true,
  20.         "show_in_menu" => true,
  21.         "exclude_from_search" => false,
  22.         "capability_type" => "post",
  23.         "map_meta_cap" => true,
  24.         "hierarchical" => true,
  25.         "rewrite" => array( "slug" => "works", "with_front" => true ),
  26.         "query_var" => true,
  27.         "supports" => array( "title", "editor", "thumbnail" ),
  28.         "taxonomies" => array( "category" ),
  29.     );
  30.  
  31.     register_post_type( "works", $args );
  32. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement