Filter hook 'widget_posts_args'

in WP Core File wp-includes/widgets/class-wp-widget-recent-posts.php at line 73

Description

Filters the arguments for the Recent Posts widget.

Occurrences

Filename Line Number
wp-includes/widgets/class-wp-widget-recent-posts.php 73

Parameters

Type Name Description
array $args An array of arguments used to retrieve the recent posts.
array $instance Array of settings for the current widget.

PHP Doc

/**
			 * Filters the arguments for the Recent Posts widget.
			 *
			 * @since 3.4.0
			 * @since 4.9.0 Added the `$instance` parameter.
			 *
			 * @see WP_Query::get_posts()
			 *
			 * @param array $args     An array of arguments used to retrieve the recent posts.
			 * @param array $instance Array of settings for the current widget.
			 */