get_users_drafts
Filters the user's drafts query string.
Usage
add_filter( 'get_users_drafts', 'wp_kama_get_users_drafts_filter' ); /** * Function for `get_users_drafts` filter-hook. * * @param string $query The user's drafts query string. * * @return string */ function wp_kama_get_users_drafts_filter( $query ){ // filter... return $query; }
- $query(string)
- The user's drafts query string.
Changelog
Since 2.0.0 | Introduced. |
Where the hook is called
get_users_drafts
wp-admin/includes/user.php 322
$query = apply_filters( 'get_users_drafts', $query );