设置方案后过滤生成的URL。
原型
apply_filters( 'set_url_scheme', string $url, string $scheme, string|null $orig_scheme )
参数
$url
(string)
完整的URL包括方案和路径。
$scheme
(string)
应用于URL的方案。 “http”,“https”或“亲戚”之一。
$orig_scheme
(string|null)
URL请求的方案。 ‘http’,‘https’,‘login’,‘login_post’,‘admin’,‘relative’,‘rest’,‘rpc’或null之一。
源文件
路径:wp-includes/link-template.php
其他
英文文档:https://developer.wordpress.org/reference/hooks/set_url_scheme/