wp_theme_json_data_theme

wp_theme_json_data_theme

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter
See hook in action

See hook in core

Displaying hooks found in version: wordpress-6.5.2

apply_filters('wp_theme_json_data_theme') is found 1 times:

  • /wp-includes/class-wp-theme-json-resolver.php line 257
    			 * @since 6.1.0
    			 *
    			 * @param WP_Theme_JSON_Data $theme_json Class to access and update the underlying data.
    			 */
    			$theme_json      = apply_filters( 'wp_theme_json_data_theme', new WP_Theme_JSON_Data( $theme_json_data, 'theme' ) );
    			$theme_json_data = $theme_json->get_data();
    			static::$theme   = new WP_Theme_JSON( $theme_json_data );
    
    			if ( $wp_theme->parent() ) {
    				// Get parent theme.json.
    				$parent_theme_json_file = $wp_theme->parent()->get_file_path( 'theme.json' );
    

See this hook used in plugins: