wp_list_users_args хук-фильтрWP 6.1.0

Filters the query arguments for the list of all users of the site.

Использование

add_filter( 'wp_list_users_args', 'wp_kama_list_users_args_filter', 10, 2 );

/**
 * Function for `wp_list_users_args` filter-hook.
 * 
 * @param array $query_args  The query arguments for get_users().
 * @param array $parsed_args The arguments passed to wp_list_users() combined with the defaults.
 *
 * @return array
 */
function wp_kama_list_users_args_filter( $query_args, $parsed_args ){

	// filter...
	return $query_args;
}
$query_args(массив)
The query arguments for get_users().
$parsed_args(массив)
The arguments passed to wp_list_users() combined with the defaults.

Список изменений

С версии 6.1.0 Введена.

Где вызывается хук

wp_list_users()
wp_list_users_args
wp-includes/user.php 842
$query_args = apply_filters( 'wp_list_users_args', $query_args, $parsed_args );

Где используется хук в WordPress

Использование не найдено.