Menu Adam R Brown

WP hooks navigation: Home/browseActions indexFilters index

Source View: wp_theme_json_data_default

To save our bandwidth, we show only a snippet of code around each occurence of the hook. View complete file in SVN (without highlighting).

Understanding Source Code

The best way to understand what a hook does is to look at where it occurs in the source code.

Remember, this hook may occur in more than one file. Moreover, the hook's context may change from version to version.

Source View

Line Code
174           $config = static::translate( $config );
175
176           /**
177            * Filters the default data provided by WordPress for global styles & settings.
178            *
179            * @since 6.1.0
180            *
181            * @param WP_Theme_JSON_Data Class to access and update the underlying data.
182            */
183           $theme_json   = apply_filters( 'wp_theme_json_data_default', new WP_Theme_JSON_Data( $config, 'default' ) );
184           $config       = $theme_json->get_data();
185           static::$core = new WP_Theme_JSON( $config, 'default' );
186
187           return static::$core;
188      }
189
190      /**
191       * Checks whether the registered blocks were already processed for this origin.
192       *