Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /**
- * Post Type: Работы.
- */
- $labels = array(
- "name" => __( 'Работы', '' ),
- "singular_name" => __( 'Работы', '' ),
- );
- $args = array(
- "label" => __( 'Работы', '' ),
- "labels" => $labels,
- "description" => "",
- "public" => true,
- "publicly_queryable" => true,
- "show_ui" => true,
- "show_in_rest" => false,
- "rest_base" => "",
- "has_archive" => true,
- "show_in_menu" => true,
- "exclude_from_search" => false,
- "capability_type" => "post",
- "map_meta_cap" => true,
- "hierarchical" => true,
- "rewrite" => array( "slug" => "works", "with_front" => true ),
- "query_var" => true,
- "supports" => array( "title", "editor", "thumbnail" ),
- "taxonomies" => array( "category" ),
- );
- register_post_type( "works", $args );
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement