wpseek.com
WordPress开发者和主题制作者的搜索引擎



wp_theme_json_data_blocks › WordPress过滤钩子

Since6.1.0
已弃用n/a
apply_filters( 'wp_theme_json_data_blocks', new WP_Theme_JSON_Data( $config, 'blocks' )
参数:
  • (WP_Theme_JSON_Data) $theme_json Class to access and update the underlying data.
    Required: Yes
定义在:
文档:

Filters the data provided by the blocks for global styles & settings.





源码

$theme_json = apply_filters( 'wp_theme_json_data_blocks', new WP_Theme_JSON_Data( $config, 'blocks' ) );