get_users_drafts filter-hookWP 2.0.0

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()
get_users_drafts
wp-admin/includes/user.php 316
$query = apply_filters( 'get_users_drafts', $query );

Where the hook is used in WordPress

Usage not found.