Changeset 46246
- Timestamp:
- 09/23/2019 04:07:23 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/post.php
r46232 r46246 1273 1273 * @since 4.7.0 Introduced `show_in_rest`, `rest_base` and `rest_controller_class` 1274 1274 * arguments to register the post type in REST API. 1275 * 1275 * @since 5.3.0 The `supports` argument will now accept an array of arguments for a feature. 1276 * . 1276 1277 * @global array $wp_post_types List of post types. 1277 1278 * … … 1344 1345 * Additionally, the 'revisions' feature dictates whether the post type 1345 1346 * will store revisions, and the 'comments' feature dictates whether the 1346 * comments count will show on the edit screen. Defaults is an array 1347 * containing 'title' and 'editor'. 1347 * comments count will show on the edit screen. A feature can also be 1348 * specified as an array of arguments to provide additional information 1349 * about supporting that feature. Example: `array( 'my_feature', array( 1350 * 'field' => 'value' ) )`. Default is an array containing 'title' and 1351 * 'editor'. 1348 1352 * @type callable $register_meta_box_cb Provide a callback function that sets up the meta boxes for the 1349 1353 * edit form. Do remove_meta_box() and add_meta_box() calls in the … … 1801 1805 * store revisions, and the 'comments' feature dictates whether the comments 1802 1806 * count will show on the edit screen. 1807 * 1808 * A third, optional parameter can also be passed along with a feature to provide 1809 * additional information about supporting that feature. 1803 1810 * 1804 1811 * Example usage:
Note: See TracChangeset
for help on using the changeset viewer.