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()的响应。

$active = apply_filters( 'customize_control_active', $active, $control );

常见问题

FAQs
查看更多 >