wp_theme_json_data_user, new WP_Theme_JSON_Data_Gutenberg( $config, custom

wp_theme_json_data_user, new WP_Theme_JSON_Data_Gutenberg( $config, custom

Appears in:
Hook Type: filter

See hook in core

Displaying hooks found in version: gutenberg.23.6.2

apply_filters('wp_theme_json_data_user, new WP_Theme_JSON_Data_Gutenberg( $config, custom') is found 2 times:

  • /lib/class-wp-theme-json-resolver-gutenberg.php line 541
    				 * @since 6.1.0
    				 *
    				 * @param WP_Theme_JSON_Data_Gutenberg Class to access and update the underlying data.
    				 */
    				$theme_json = apply_filters( 'wp_theme_json_data_user', new WP_Theme_JSON_Data_Gutenberg( $config, 'custom' ) );
    
    				return $theme_json->get_theme_json();
    			}
    
    			// Very important to verify that the flag isGlobalStylesUserThemeJSON is true.
    			// If it's not true then the content was not escaped and is not safe.
    
  • /lib/class-wp-theme-json-resolver-gutenberg.php line 559
    			}
    		}
    
    		/** This filter is documented in wp-includes/class-wp-theme-json-resolver.php */
    		$theme_json   = apply_filters( 'wp_theme_json_data_user', new WP_Theme_JSON_Data_Gutenberg( $config, 'custom' ) );
    		static::$user = $theme_json->get_theme_json();
    
    		return static::$user;
    	}
    
    	/**