Summery Summery
Loads and caches certain often requested site options if is_multisite() and a persistent cache is not being used.
Syntax Syntax
Parameters Parameters
- $network_id
-
(Optional) site ID for which to query the options. Defaults to the current site.
Default value: null
Source Source
File: wp-includes/option.php
* @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 * * @param array $alloptions Array with all options. */ return apply_filters( 'alloptions', $alloptions ); } /** * Loads and caches certain often requested site options if is_multisite() and a persistent cache is not being used. * * @since 3.0.0 * * @global wpdb $wpdb WordPress database abstraction object.
Advertisement
Changelog Changelog
Version | Description |
---|---|
3.0.0 | Introduced. |