wp_get_global_styles


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

Parameters:
  • (array) path Path to the specific style to retrieve. Optional. If empty, will return all styles.
  • (array) context { Metadata to know where to retrieve the $path from. Optional. @type string $block_name Which block to retrieve the styles from. If empty, it'll return the styles 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. @type array $transforms Which transformation(s) to apply. Valid value is array( 'resolve-variables' ). If defined, variables are resolved to their value in the styles. }
Returns:
  • (mixed) The styles array or individual style value to retrieve.
Defined at:
Change Log:
  • 6: .
  • 6: .

Description

Gets the styles resulting of merging core, theme, and user data.

Related Functions

wp_get_global_stylesheet, wp_enqueue_global_styles, wp_get_global_settings, wp_get_global_styles_custom_css, wp_get_global_styles_svg_filters

Top Google Results

User discussions

wpseek mobile