widget_posts_args
widget_posts_args
Appears in: wordpress-4.0, wordpress-4.4, wordpress-4.8, wordpress-4.9, wordpress-4.9.4, wordpress-4.9.5, wordpress-4.9.6, wordpress-4.9.7, wordpress-4.9.8, wordpress-5.0, wordpress-5.0.1, wordpress-5.0.2, wordpress-5.0.3
Hook Type: filter
Displaying hooks found in version: wordpress-5.0.3apply_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 ) );