Changeset 40302
- Timestamp:
- 03/18/2017 03:16:28 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/class-wp-post-type.php
r38610 r40302 333 333 */ 334 334 public $supports; 335 336 /** 337 * Whether this post type should appear in the REST API. 338 * 339 * Default false. If true, standard endpoints will be registered with 340 * respect to $rest_base and $rest_controller_class. 341 * 342 * @since 4.7.4 343 * @access public 344 * @var bool $show_in_rest 345 */ 346 public $show_in_rest; 347 348 /** 349 * The base path for this post type's REST API endpoints. 350 * 351 * @since 4.7.4 352 * @access public 353 * @var string|bool $rest_base 354 */ 355 public $rest_base; 356 357 /** 358 * The controller for this post type's REST API endpoints. 359 * 360 * Custom controllers must extend WP_REST_Controller. 361 * 362 * @since 4.7.4 363 * @access public 364 * @var string|bool $rest_controller_class 365 */ 366 public $rest_controller_class; 335 367 336 368 /** … … 380 412 // Args prefixed with an underscore are reserved for internal use. 381 413 $defaults = array( 382 'labels' => array(), 383 'description' => '', 384 'public' => false, 385 'hierarchical' => false, 386 'exclude_from_search' => null, 387 'publicly_queryable' => null, 388 'show_ui' => null, 389 'show_in_menu' => null, 390 'show_in_nav_menus' => null, 391 'show_in_admin_bar' => null, 392 'menu_position' => null, 393 'menu_icon' => null, 394 'capability_type' => 'post', 395 'capabilities' => array(), 396 'map_meta_cap' => null, 397 'supports' => array(), 398 'register_meta_box_cb' => null, 399 'taxonomies' => array(), 400 'has_archive' => false, 401 'rewrite' => true, 402 'query_var' => true, 403 'can_export' => true, 404 'delete_with_user' => null, 405 '_builtin' => false, 406 '_edit_link' => 'post.php?post=%d', 414 'labels' => array(), 415 'description' => '', 416 'public' => false, 417 'hierarchical' => false, 418 'exclude_from_search' => null, 419 'publicly_queryable' => null, 420 'show_ui' => null, 421 'show_in_menu' => null, 422 'show_in_nav_menus' => null, 423 'show_in_admin_bar' => null, 424 'menu_position' => null, 425 'menu_icon' => null, 426 'capability_type' => 'post', 427 'capabilities' => array(), 428 'map_meta_cap' => null, 429 'supports' => array(), 430 'register_meta_box_cb' => null, 431 'taxonomies' => array(), 432 'has_archive' => false, 433 'rewrite' => true, 434 'query_var' => true, 435 'can_export' => true, 436 'delete_with_user' => null, 437 'show_in_rest' => false, 438 'rest_base' => false, 439 'rest_controller_class' => false, 440 '_builtin' => false, 441 '_edit_link' => 'post.php?post=%d', 407 442 ); 408 443
Note: See TracChangeset
for help on using the changeset viewer.