customize_register

関数の概要

customize_register関数は、WordPressのテーマカスタマイザーを設定するためのフックです。テーマカスタマイザーを使用して、テーマオプションやカスタムコントロールを追加できます。

パラメータの説明

  • WP_Customize_Manager $wp_customize: テーマカスタマイザーオブジェクト。

戻り値

なし

使用例


function custom_theme_customizer($wp_customize) {
    // Add custom settings and controls here
}
add_action('customize_register', 'custom_theme_customizer');

関連する関数

  • add_action: アクションフックに関数を追加する。
  • WP_Customize_Manager: テーマカスタマイザーオブジェクトを表す。