wp_theme_json_data_user

过滤钩子
apply_filters( 'wp_theme_json_data_user', new WP_Theme_JSON_Data( $config, 'custom' )

wp_theme_json_data_user:这是一个 WordPress 主题用户数据的常量,用于指定用户设置的主题数据。该常量在用户设置主题数据时定义,并且用户的数据将存储在此常量中。

对用户提供的全局样式和设置的数据进行过滤。

$theme_json = apply_filters( 'wp_theme_json_data_user', new WP_Theme_JSON_Data( $config, 'custom' ) );

常见问题

FAQs
查看更多 >