wphooks.info - pre_cache_alloptions

pre_cache_alloptions

*** New in v4.9 ***

The hook occurs in the following file:

wp-includes/option.php:
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
		}

		if ( ! wp_installing() || ! is_multisite() ) {
			/**
			 * Filters all options before caching them.
			 *
			 * @since 4.9.0
			 *
			 * @param array $alloptions Array with all options.
			 */
			$alloptions = apply_filters( 'pre_cache_alloptions', $alloptions );
			wp_cache_add( 'alloptions', $alloptions, 'options' );
		}
	}

	/**
	 * Filters all options after retrieving them.
	 *
	 * @since 4.9.0
	 *