Changeset 38095 for trunk/src/wp-includes/functions.php
- Timestamp:
- 07/18/2016 09:15:37 PM (10 years ago)
- File:
-
- 1 edited
-
trunk/src/wp-includes/functions.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/functions.php
r38038 r38095 5359 5359 5360 5360 /** 5361 * Check if an object type exists. By default, these are `post`, `comment`, `user`, and `term`.5362 *5363 * @since 4.6.05364 *5365 * @param string $object_type Object type to check.5366 * @return bool True if the object type exists, false if not.5367 */5368 function wp_object_type_exists( $object_type ) {5369 /**5370 * Filters WordPress object types.5371 *5372 * @since 4.6.05373 *5374 * @param array $types Array of object types.5375 */5376 $types = apply_filters( 'wp_object_types', array( 'post', 'comment', 'user', 'term' ) );5377 5378 if ( in_array( $object_type, $types ) ) {5379 return true;5380 }5381 5382 return false;5383 }5384 5385 /**5386 5361 * Attempts to raise the PHP memory limit for memory intensive processes. 5387 5362 *
Note: See TracChangeset
for help on using the changeset viewer.