WordPress开发者和主题制作者的搜索引擎



widget_display_callback ›

Since2.8.0
已弃用n/a
apply_filters( 'widget_display_callback', $instance, $this, $args )
参数: (3)
  • (array) $instance The current widget instance's settings.
    Required: Yes
  • (WP_Widget) $this The current widget instance.
    Required: Yes
  • (array) $args An array of default widget arguments.
    Required: Yes
定义在:
文档:

Filters the settings for a particular widget instance.

Returning false will effectively short-circuit display of the widget.





源码

$instance = apply_filters( 'widget_display_callback', $instance, $this, $args );