theme_json_user

theme_json_user

Hook Type: filter

See hook in core

Displaying hooks found in version: gutenberg.14.3.1

apply_filters('theme_json_user') is found 2 times:

  • /lib/compat/wordpress-6.1/class-wp-theme-json-resolver-6-1.php line 95
    				 * Filters the data provided by the user for global styles & settings.
    				 *
    				 * @param WP_Theme_JSON_Data_Gutenberg Class to access and update the underlying data.
    				 */
    				$theme_json = apply_filters( 'theme_json_user', new WP_Theme_JSON_Data_Gutenberg( $config, 'custom' ) );
    				$config     = $theme_json->get_data();
    				return new WP_Theme_JSON_Gutenberg( $config, 'custom' );
    			}
    
    			// Very important to verify if the flag isGlobalStylesUserThemeJSON is true.
    			// If is not true the content was not escaped and is not safe.
    
  • /lib/compat/wordpress-6.1/class-wp-theme-json-resolver-6-1.php line 117
    		 * Filters the data provided by the user for global styles & settings.
    		 *
    		 * @param WP_Theme_JSON_Data_Gutenberg Class to access and update the underlying data.
    		 */
    		$theme_json   = apply_filters( 'theme_json_user', new WP_Theme_JSON_Data_Gutenberg( $config, 'custom' ) );
    		$config       = $theme_json->get_data();
    		static::$user = new WP_Theme_JSON_Gutenberg( $config, 'custom' );
    
    		return static::$user;
    	}
    }