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 主題使用者資料的常量,用於指定使用者設定的主題資料。該常量在使用者設定主題資料時定義,並且使用者的資料將儲存在此常量中。

對使用者提供的全域性樣式和設定的資料進行過濾。

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
$theme_json = apply_filters( 'wp_theme_json_data_user', new WP_Theme_JSON_Data( $config, 'custom' ) );
$theme_json = apply_filters( 'wp_theme_json_data_user', new WP_Theme_JSON_Data( $config, 'custom' ) );
$theme_json = apply_filters( 'wp_theme_json_data_user', new WP_Theme_JSON_Data( $config, 'custom' ) );

常見問題

FAQs
檢視更多 >