Changeset 55256 for trunk/src/wp-includes/option.php
- Timestamp:
- 02/07/2023 12:47:30 PM (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/option.php
r55033 r55256 301 301 function wp_load_alloptions( $force_cache = false ) { 302 302 global $wpdb; 303 304 /** 305 * Filters the array of alloptions before it is populated. 306 * 307 * Returning an array from the filter will effectively short circuit 308 * wp_load_alloptions(), returning that value instead. 309 * 310 * @since 6.2.0 311 * 312 * @param array|null $alloptions An array of alloptions. Default null. 313 * @param bool $force_cache Whether to force an update of the local cache from the persistent cache. Default false. 314 */ 315 $alloptions = apply_filters( 'pre_wp_load_alloptions', null, $force_cache ); 316 if ( is_array( $alloptions ) ) { 317 return $alloptions; 318 } 303 319 304 320 if ( ! wp_installing() || ! is_multisite() ) {
Note: See TracChangeset
for help on using the changeset viewer.