Changeset 51299 for trunk/src/wp-includes/post.php
- Timestamp:
- 07/01/2021 09:09:04 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/post.php
r51298 r51299 1392 1392 * the admin interface or by front-end users. While the default 1393 1393 * settings of $exclude_from_search, $publicly_queryable, $show_ui, 1394 * and $show_in_nav_menus are inherited from public, each does not1394 * and $show_in_nav_menus are inherited from $public, each does not 1395 1395 * rely on this relationship and controls a very specific intention. 1396 1396 * Default false. … … 1418 1418 * @type bool $show_in_rest Whether to include the post type in the REST API. Set this to true 1419 1419 * for the post type to be available in the block editor. 1420 * @type string $rest_base To change the base urlof REST API route. Default is $post_type.1421 * @type string $rest_controller_class REST API Controller class name. Default is 'WP_REST_Posts_Controller'.1420 * @type string $rest_base To change the base URL of REST API route. Default is $post_type. 1421 * @type string $rest_controller_class REST API controller class name. Default is 'WP_REST_Posts_Controller'. 1422 1422 * @type int $menu_position The position in the menu order the post type should appear. To work, 1423 1423 * $show_in_menu must be true. Default null (at the bottom). 1424 * @type string $menu_icon The urlto the icon to be used for this menu. Pass a base64-encoded1424 * @type string $menu_icon The URL to the icon to be used for this menu. Pass a base64-encoded 1425 1425 * SVG using a data URI, which will be colored to match the color scheme 1426 1426 * -- this should begin with 'data:image/svg+xml;base64,'. Pass the name
Note: See TracChangeset
for help on using the changeset viewer.