wphooks.info - dashboard_recent_drafts_query_args

dashboard_recent_drafts_query_args

(trunk - 5.0-alpha-42490)

The hook occurs in the following file:

wp-admin/includes/dashboard.php:
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
			'order'          => 'DESC',
		);

		/**
		 * Filters the post query arguments for the 'Recent Drafts' dashboard widget.
		 *
		 * @since 4.4.0
		 *
		 * @param array $query_args The query arguments for the 'Recent Drafts' dashboard widget.
		 */
		$query_args = apply_filters( 'dashboard_recent_drafts_query_args', $query_args );

		$drafts = get_posts( $query_args );
		if ( ! $drafts ) {
			return;
		}
	}

	echo '<div class="drafts">';
	if ( count( $drafts ) > 3 ) {