On this page
apply_filters( 'user_dashboard_url', string $url, int $user_id, string $path, string $scheme )
Filters the dashboard URL for a user.
Parameters
$urlstring-
The complete URL including scheme and path.
$user_idint-
The user ID.
$pathstring-
Path relative to the URL. Blank string if no path is specified.
$schemestring-
Scheme to give the URL context. Accepts
'http','https','login','login_post','admin','relative'or null.
Source
File: wp-includes/link-template.php. View all references
return apply_filters( 'user_dashboard_url', $url, $user_id, $path, $scheme );
Related
Used By
| Used By | Description |
|---|---|
| get_dashboard_url() wp-includes/link-template.php | Retrieves the URL to the user’s dashboard. |
Changelog
| Version | Description |
|---|---|
| 3.1.0 | Introduced. |
© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/user_dashboard_url