wp_load_core_site_options

Advertisement

Summery Summery

Loads and caches certain often requested site options if is_multisite() and a persistent cache is not being used.

Syntax Syntax

wp_load_core_site_options( int $network_id = null )

Parameters Parameters

$network_id

(int) (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

Changelog
Version Description
3.0.0 Introduced.

Advertisement

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.