wp_theme_json_data_theme хук-фильтрWP 6.1.0

Filters the data provided by the theme for global styles and settings.

Использование

add_filter( 'wp_theme_json_data_theme', 'wp_kama_theme_json_data_filter' );

/**
 * Function for `wp_theme_json_data_theme` filter-hook.
 * 
 * @param WP_Theme_JSON_Data $WP_Theme_JSON_Data Class to access and update the underlying data.
 *
 * @return WP_Theme_JSON_Data
 */
function wp_kama_theme_json_data_filter( $WP_Theme_JSON_Data ){

	// filter...
	return $WP_Theme_JSON_Data;
}
$WP_Theme_JSON_Data(WP_Theme_JSON_Data)
Class to access and update the underlying data.

Список изменений

С версии 6.1.0 Введена.

Где вызывается хук

WP_Theme_JSON_Resolver::get_theme_data()
wp_theme_json_data_theme
wp-includes/class-wp-theme-json-resolver.php 265
$theme_json      = apply_filters( 'wp_theme_json_data_theme', new WP_Theme_JSON_Data( $theme_json_data, 'theme' ) );

Где используется хук в WordPress

Использование не найдено.