get_users_drafts WordPress Filter Hook

The get_users_drafts WordPress hook is used to retrieve a list of all the drafts for a specific user. This hook is useful for displaying a list of all the drafts a user has, or for checking if a user has any drafts.

apply_filters( 'get_users_drafts', string $query ) #

Filters the user’s drafts query string.


Parameters

$query

(string)The user's drafts query string.


Top ↑

Source

File: wp-admin/includes/user.php

View on Trac



Top ↑

Changelog

Changelog
VersionDescription
2.0.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.