Changeset 52110 for trunk/src/wp-includes/class-wp-theme-json-resolver.php
- Timestamp:
- 11/10/2021 02:16:03 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/class-wp-theme-json-resolver.php
r52077 r52110 191 191 192 192 /** 193 * Returns the CPTthat contains the user's origin config194 * for the current theme or a void array if none found.195 * 196 * It can also create and return a new draft CPT.193 * Returns the custom post type that contains the user's origin config 194 * for the current theme or a void array if none are found. 195 * 196 * This can also create and return a new draft custom post type. 197 197 * 198 198 * @since 5.9.0 199 199 * 200 * @param bool $should_create_cpt Optional. Whether a new CPT should be created if no one wasfound.200 * @param bool $should_create_cpt Optional. Whether a new custom post type should be created if none are found. 201 201 * False by default. 202 * @param array $post_status_filter Filter Optional. CPTby post status.202 * @param array $post_status_filter Filter Optional. custom post type by post status. 203 203 * ['publish'] by default, so it only fetches published posts. 204 204 *
Note: See TracChangeset
for help on using the changeset viewer.