Changeset 46196 for trunk/src/wp-includes/post.php
- Timestamp:
- 09/20/2019 01:04:50 PM (7 years ago)
- File:
-
- 1 edited
-
trunk/src/wp-includes/post.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/post.php
r46178 r46196 1314 1314 * Default is value of $show_ui. 1315 1315 * @type bool $show_in_nav_menus Makes this post type available for selection in navigation menus. 1316 * Default is value $public.1316 * Default is value of $public. 1317 1317 * @type bool $show_in_admin_bar Makes this post type available via the admin bar. Default is value 1318 1318 * of $show_in_menu. 1319 * @type bool $show_in_rest Whether to add the post type route in the REST API 'wp/v2' namespace. 1319 * @type bool $show_in_rest Whether to include the post type in the REST API. Set this to true 1320 * for the post type to be available in the block editor. 1320 1321 * @type string $rest_base To change the base url of REST API route. Default is $post_type. 1321 1322 * @type string $rest_controller_class REST API Controller class name. Default is 'WP_REST_Posts_Controller'.
Note: See TracChangeset
for help on using the changeset viewer.