wp-admin/includes/user.php:316Retrieve the user's drafts.
$user_idintarrayOne hook fires while get_users_drafts() runs, in this order:
Filters the SQL query string for the user's drafts query.
function get_users_drafts( $user_id ) { global $wpdb; $query = $wpdb->prepare( "SELECT ID, post_title FROM $wpdb->posts WHERE post_type = 'post' AND post_status = 'draft' AND post_author = %d ORDER BY post_modified DESC", $user_id ); /** * Filters the SQL query string for the user's drafts query. * * @since 2.0.0 * * @param string $query The user's drafts query string. */ $query = apply_filters( 'get_users_drafts', $query ); return $wpdb->get_results( $query );}Introduced in 2.0.0. One change between 6.7.7 and 7.1.0.
Signature, return type and hooks compared across 5 parsed releases.
array to object[].verified against sourcesrc/wp-admin/includes/user.php, and regenerated for each WordPress release so it tracks the code rather than a snapshot of it.