Changeset 52062 for trunk/src/wp-includes/post.php
- Timestamp:
- 11/08/2021 11:09:53 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/post.php
r52045 r52062 356 356 ), 357 357 'map_meta_cap' => true, 358 'supports' => array( 359 'title', 360 'slug', 361 'excerpt', 362 'editor', 363 'revisions', 364 ), 365 ) 366 ); 367 368 register_post_type( 369 'wp_template_part', 370 array( 371 'labels' => array( 372 'name' => __( 'Template Parts' ), 373 'singular_name' => __( 'Template Part' ), 374 'add_new' => _x( 'Add New', 'Template Part' ), 375 'add_new_item' => __( 'Add New Template Part' ), 376 'new_item' => __( 'New Template Part' ), 377 'edit_item' => __( 'Edit Template Part' ), 378 'view_item' => __( 'View Template Part' ), 379 'all_items' => __( 'All Template Parts' ), 380 'search_items' => __( 'Search Template Parts' ), 381 'parent_item_colon' => __( 'Parent Template Part:' ), 382 'not_found' => __( 'No template parts found.' ), 383 'not_found_in_trash' => __( 'No template parts found in Trash.' ), 384 'archives' => __( 'Template part archives' ), 385 'insert_into_item' => __( 'Insert into template part' ), 386 'uploaded_to_this_item' => __( 'Uploaded to this template part' ), 387 'filter_items_list' => __( 'Filter template parts list' ), 388 'items_list_navigation' => __( 'Template parts list navigation' ), 389 'items_list' => __( 'Template parts list' ), 390 ), 391 'description' => __( 'Template parts to include in your templates.' ), 392 'public' => false, 393 '_builtin' => true, /* internal use only. don't use this when registering your own post type. */ 394 'has_archive' => false, 395 'show_ui' => false, 396 'show_in_menu' => false, 397 'show_in_rest' => true, 398 'rewrite' => false, 399 'rest_base' => 'template-parts', 400 'rest_controller_class' => 'WP_REST_Templates_Controller', 401 'map_meta_cap' => true, 402 'capabilities' => array( 403 'create_posts' => 'edit_theme_options', 404 'delete_posts' => 'edit_theme_options', 405 'delete_others_posts' => 'edit_theme_options', 406 'delete_private_posts' => 'edit_theme_options', 407 'delete_published_posts' => 'edit_theme_options', 408 'edit_posts' => 'edit_theme_options', 409 'edit_others_posts' => 'edit_theme_options', 410 'edit_private_posts' => 'edit_theme_options', 411 'edit_published_posts' => 'edit_theme_options', 412 'publish_posts' => 'edit_theme_options', 413 'read' => 'edit_theme_options', 414 'read_private_posts' => 'edit_theme_options', 415 ), 358 416 'supports' => array( 359 417 'title',
Note: See TracChangeset
for help on using the changeset viewer.