Files
Filename | Hook Type | Line Number | PHP Doc |
---|---|---|---|
wp-includes/widgets/class-wp-widget-tag-cloud.php | apply_filters | 89 | /** * Filters the taxonomy used in the Tag Cloud widget. * * @since 2.8.0 * @since 3.0.0 Added taxonomy drop-down. * @since 4.9.0 Added the `$instance` parameter. * * @see wp_tag_cloud() * * @param array $args Args used for the tag cloud widget. * @param array $instance Array of settings for the current widget. */ |
wp-includes/widgets/class-wp-widget-archives.php | apply_filters | 48 | /** * Outputs the content for the current Archives widget instance. * * @since 2.8.0 * * @param array $args Display arguments including 'before_title', 'after_title', * 'before_widget', and 'after_widget'. * @param array $instance Settings for the current Archives widget instance. */ |
wp-includes/widgets/class-wp-widget-meta.php | apply_filters | 50 | /** * Outputs the content for the current Meta widget instance. * * @since 2.8.0 * * @param array $args Display arguments including 'before_title', 'after_title', * 'before_widget', and 'after_widget'. * @param array $instance Settings for the current Meta widget instance. */ |
wp-includes/widgets/class-wp-widget-media.php | apply_filters | 236 | /** * Displays the widget on the front-end. * * @since 4.8.0 * * @see WP_Widget::widget() * * @param array $args Display arguments including before_title, after_title, before_widget, and after_widget. * @param array $instance Saved setting from the database. */ |
wp-includes/widgets/class-wp-widget-recent-posts.php | apply_filters | 53 | /** * Outputs the content for the current Recent Posts widget instance. * * @since 2.8.0 * * @param array $args Display arguments including 'before_title', 'after_title', * 'before_widget', and 'after_widget'. * @param array $instance Settings for the current Recent Posts widget instance. */ |
wp-includes/widgets/class-wp-widget-search.php | apply_filters | 47 | /** * Outputs the content for the current Search widget instance. * * @since 2.8.0 * * @param array $args Display arguments including 'before_title', 'after_title', * 'before_widget', and 'after_widget'. * @param array $instance Settings for the current Search widget instance. */ |
wp-includes/widgets/class-wp-widget-pages.php | apply_filters | 56 | /** * Filters the widget title. * * @since 2.6.0 * * @param string $title The widget title. Default 'Pages'. * @param array $instance Array of settings for the current widget. * @param mixed $id_base The widget ID. */ |
wp-includes/widgets/class-wp-widget-custom-html.php | apply_filters | 134 | /** * Outputs the content for the current Custom HTML widget instance. * * @since 4.8.1 * * @global WP_Post $post Global post object. * * @param array $args Display arguments including 'before_title', 'after_title', * 'before_widget', and 'after_widget'. * @param array $instance Settings for the current Custom HTML widget instance. */ |
wp-includes/widgets/class-wp-widget-categories.php | apply_filters | 52 | /** * Outputs the content for the current Categories widget instance. * * @since 2.8.0 * @since 4.2.0 Creates a unique HTML ID for the ` |
wp-includes/widgets/class-wp-widget-recent-comments.php | apply_filters | 90 | /** * Outputs the content for the current Recent Comments widget instance. * * @since 2.8.0 * @since 5.4.0 Creates a unique HTML ID for the `
* if more than one instance is displayed on the page. * * @param array $args Display arguments including 'before_title', 'after_title', * 'before_widget', and 'after_widget'. * @param array $instance Settings for the current Recent Comments widget instance. */ |
wp-includes/widgets/class-wp-nav-menu-widget.php | apply_filters | 54 | /** * Outputs the content for the current Navigation Menu widget instance. * * @since 3.0.0 * * @param array $args Display arguments including 'before_title', 'after_title', * 'before_widget', and 'after_widget'. * @param array $instance Settings for the current Navigation Menu widget instance. */ |
wp-includes/widgets/class-wp-widget-calendar.php | apply_filters | 54 | /** * Outputs the content for the current Calendar widget instance. * * @since 2.8.0 * * @param array $args Display arguments including 'before_title', 'after_title', * 'before_widget', and 'after_widget'. * @param array $instance The settings for the particular instance of the widget. */ |
wp-includes/widgets/class-wp-widget-rss.php | apply_filters | 87 | /** * Outputs the content for the current RSS widget instance. * * @since 2.8.0 * * @param array $args Display arguments including 'before_title', 'after_title', * 'before_widget', and 'after_widget'. * @param array $instance Settings for the current RSS widget instance. */ |
wp-includes/widgets/class-wp-widget-text.php | apply_filters | 231 | /** * Outputs the content for the current Text widget instance. * * @since 2.8.0 * * @global WP_Post $post Global post object. * * @param array $args Display arguments including 'before_title', 'after_title', * 'before_widget', and 'after_widget'. * @param array $instance Settings for the current Text widget instance. */ |
Hook Parameters
Parameter Type | Name | Description |
---|---|---|
string | $title | The widget title. Default 'Pages'. |
array | $instance | Array of settings for the current widget. |
mixed | $id_base | The widget ID. |