On this page
apply_filters( 'set_url_scheme', string $url, string $scheme, string|null $orig_scheme )
Filters the resulting URL after setting the scheme.
Parameters
$urlstring-
The complete URL including scheme and path.
$schemestring-
Scheme applied to the URL. One of
'http','https', or'relative'. $orig_schemestring|null-
Scheme requested for the URL. One of
'http','https','login','login_post','admin','relative','rest','rpc', or null.
Source
File: wp-includes/link-template.php. View all references
return apply_filters( 'set_url_scheme', $url, $scheme, $orig_scheme );
Related
Used By
| Used By | Description |
|---|---|
| set_url_scheme() wp-includes/link-template.php | Sets the scheme for a URL. |
Changelog
| Version | Description |
|---|---|
| 3.4.0 | Introduced. |
© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/set_url_scheme