wphooks.info - dashboard_recent_drafts_query_args

dashboard_recent_drafts_query_args

The hook occurs in the following file:

wp-admin/includes/dashboard.php:
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
			'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 ) {