customize_control_active

過濾鉤子
apply_filters( 'customize_control_active', $active, $control )
引數
  • (bool) $active Whether the Customizer control is active.
    Required:
  • (WP_Customize_Control) $control WP_Customize_Control instance.
    Required:
定義位置
相關勾子
customize_controls_headcustomize_controls_initcustomize_controls_print_stylescustomize_render_controlcustomize_controls_print_scripts
相關方法
wp_customize_urlsanitize_comment_cookiesis_customize_previewwp_customize_support_scriptupdate_comment_cachecustomize_themes_print_templates
引入
4.0.0
棄用
-

customize_control_active – 這個過濾鉤子用於確定一個自定義控制元件是否處於活動狀態。

過濾WP_Customize_Control::active()的響應。

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
$active = apply_filters( 'customize_control_active', $active, $control );
$active = apply_filters( 'customize_control_active', $active, $control );
$active = apply_filters( 'customize_control_active', $active, $control );

常見問題

FAQs
檢視更多 >