wp_get_global_settings


wp_get_global_settings ( $path = array(), $context = array() )

Parameters:
  • (array) path Path to the specific setting to retrieve. Optional. If empty, will return all settings.
  • (array) context { Metadata to know where to retrieve the $path from. Optional. @type string $block_name Which block to retrieve the settings from. If empty, it'll return the settings for the global context. @type string $origin Which origin to take data from. Valid values are 'all' (core, theme, and user) or 'base' (core and theme). If empty or unknown, 'all' is used. }
Returns:
  • (array) The settings to retrieve.
Defined at:

Description

Function to get the settings resulting of merging core, theme, and user data.

Related Functions

wp_get_global_styles, wp_set_all_user_settings, wp_get_global_stylesheet, get_settings, get_all_user_settings

Top Google Results

User discussions

wpseek mobile