wp_get_global_styles ( $path = array(), $block_name = '', $origin = 'all' )

  • (array) path Path to the specific style to retrieve. Optional. If empty, will return all styles.
  • (string) block_name Which block to retrieve the styles from. Optional. If empty, it'll return the styles for the global context.
  • (string) origin Which origin to take data from. Optional. It can be '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_filter_global_styles_post

Top Google Results

User discussions

wpseek mobile