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.
Source
Changelog
Version | Description |
---|---|
2.0.0 | Introduced. |