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

  • (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. }
  • (array) The styles to retrieve.
Defined at:


Function to get 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_layout_style, wp_get_global_styles_svg_filters

Top Google Results

User discussions

wpseek mobile