widget_posts_args

widget_posts_args

Hook Type: filter

See hook in core

Displaying hooks found in version: wordpress-5.0.3

apply_filters('widget_posts_args') is found 1 times:

  • /wp-includes/widgets/class-wp-widget-recent-posts.php line 70
    		 *
    		 * @param array $args     An array of arguments used to retrieve the recent posts.
    		 * @param array $instance Array of settings for the current widget.
    		 */
    		$r = new WP_Query( apply_filters( 'widget_posts_args', array(
    			'posts_per_page'      => $number,
    			'no_found_rows'       => true,
    			'post_status'         => 'publish',
    			'ignore_sticky_posts' => true,
    		), $instance ) );