wphooks.info - dashboard_recent_posts_query_args

dashboard_recent_posts_query_args

(trunk - 5.0-alpha-42177)

The hook occurs in the following file:

wp-admin/includes/dashboard.php:
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
		'perm'           => ( 'future' === $args['status'] ) ? 'editable' : 'readable',
	);

	/**
	 * Filters the query arguments used for the Recent Posts widget.
	 *
	 * @since 4.2.0
	 *
	 * @param array $query_args The arguments passed to WP_Query to produce the list of posts.
	 */
	$query_args = apply_filters( 'dashboard_recent_posts_query_args', $query_args );
	$posts = new WP_Query( $query_args );

	if ( $posts->have_posts() ) {

		echo '<div id="' . $args['id'] . '" class="activity-block">';

		echo '<h3>' . $args['title'] . '</h3>';

		echo '<ul>';