Core Function
View Source on Trac ↗ wp_is_authorize_application_redirect_url_valid()
wp_is_authorize_application_redirect_url_valid( mixed $url ) Validates the redirect URL protocol scheme. The protocol can be anything except `http` and `javascript`.
Parameters 1 required
| Name / Type | Description |
|---|---|
| $url string | The redirect URL to be validated. Required |
Return Value
((true)
| WP_Error) True if the redirect URL is valid, a WP_Error object otherwise.
Function Information
Since Version
6.3.2
Source File
wp-admin/includes/user.php
Advertisement