apply_filters( ‘set_url_scheme’, string $url, string $scheme, string|null $orig_scheme )

In this article

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

return apply_filters( 'set_url_scheme', $url, $scheme, $orig_scheme );

Changelog

VersionDescription
3.4.0Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.