set_url_scheme

Advertisement

Summery Summery

Filters the resulting URL after setting the scheme.

Syntax Syntax

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

Parameters Parameters

$url

The complete URL including scheme and path.

$scheme

Scheme applied to the URL. One of 'http', 'https', or 'relative'.

$orig_scheme

Scheme requested for the URL. One of 'http', 'https', 'login', 'login_post', 'admin', 'relative', 'rest', 'rpc', or null.

Source Source

File: wp-includes/link-template.php

Advertisement

Changelog Changelog

Changelog
Version Description
3.4.0 Introduced.

Advertisement

Leave a Reply