wp_theme_json_data_user

wp_theme_json_data_user

Hook Type: filter

See hook in core

Displaying hooks found in version: wordpress-6.1

apply_filters('wp_theme_json_data_user') is found 2 times:

  • /wp-includes/class-wp-theme-json-resolver.php line 480
    				 * @since 6.1.0
    				 *
    				 * @param WP_Theme_JSON_Data Class to access and update the underlying data.
    				 */
    				$theme_json = apply_filters( 'wp_theme_json_data_user', new WP_Theme_JSON_Data( $config, 'custom' ) );
    				$config     = $theme_json->get_data();
    				return new WP_Theme_JSON( $config, 'custom' );
    			}
    
    			// 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.
    
  • /wp-includes/class-wp-theme-json-resolver.php line 498
    			}
    		}
    
    		/** 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( $config, 'custom' ) );
    		$config       = $theme_json->get_data();
    		static::$user = new WP_Theme_JSON( $config, 'custom' );
    
    		return static::$user;
    	}