Files
Filename | Hook Type | Line Number | PHP Doc |
---|---|---|---|
wp-includes/widgets.php | apply_filters | 1239 | /** * Output an arbitrary widget as a template tag. * * @since 2.8.0 * * @global WP_Widget_Factory $wp_widget_factory * * @param string $widget The widget's PHP class name (see class-wp-widget.php). * @param array $instance Optional. The widget's instance settings. Default empty array. * @param array $args { * Optional. Array of arguments to configure the display of the widget. * * @type string $before_widget HTML content that will be prepended to the widget's HTML output. * Default ` `. * @type string $before_title HTML content that will be prepended to the widget's title when displayed. * Default ` `.`. |
wp-includes/class-wp-widget.php | apply_filters | 383 | /** * Filters the settings for a particular widget instance. * * Returning false will effectively short-circuit display of the widget. * * @since 2.8.0 * * @param array $instance The current widget instance's settings. * @param WP_Widget $widget The current widget instance. * @param array $args An array of default widget arguments. */ |
Hook Parameters
Parameter Type | Name | Description |
---|---|---|
array | $instance | The current widget instance's settings. |
WP_Widget | $widget | The current widget instance. |
array | $args | An array of default widget arguments. |