edit_profile_url
Filters the URL for a user's profile editor.
Использование
add_filter( 'edit_profile_url', 'wp_kama_edit_profile_url_filter', 10, 3 ); /** * Function for `edit_profile_url` filter-hook. * * @param string $url The complete URL including scheme and path. * @param int $user_id The user ID. * @param string $scheme Scheme to give the URL context. Accepts 'http', 'https', 'login', 'login_post', 'admin', 'relative' or null. * * @return string */ function wp_kama_edit_profile_url_filter( $url, $user_id, $scheme ){ // filter... return $url; }
- $url(строка)
- The complete URL including scheme and path.
- $user_id(int)
- The user ID.
- $scheme(строка)
- Scheme to give the URL context. Accepts 'http', 'https', 'login', 'login_post', 'admin', 'relative' or null.
Список изменений
С версии 3.1.0 | Введена. |
Где вызывается хук
edit_profile_url
wp-includes/link-template.php 4020
return apply_filters( 'edit_profile_url', $url, $user_id, $scheme );