wphooks.info - dashboard_recent_posts_query_args

dashboard_recent_posts_query_args

(trunk - 5.0-alpha-43293)

The hook occurs in the following file:

wp-admin/includes/dashboard.php:
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
		'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>';