Filter hook 'set_url_scheme'

in WP Core File wp-includes/link-template.php at line 3933

Description

Filters the resulting URL after setting the scheme.

Occurrences

Filename Line Number
wp-includes/link-template.php 3933

Parameters

Type Name Description
string $url The complete URL including scheme and path.
string $scheme Scheme applied to the URL. One of 'http', 'https', or 'relative'.
string|null $orig_scheme Scheme requested for the URL. One of 'http', 'https', 'login', 'login_post', 'admin', 'relative', 'rest', 'rpc', or null.

PHP Doc

/**
	 * Filters the resulting URL after setting the scheme.
	 *
	 * @since 3.4.0
	 *
	 * @param string      $url         The complete URL including scheme and path.
	 * @param string      $scheme      Scheme applied to the URL. One of 'http', 'https', or 'relative'.
	 * @param string|null $orig_scheme Scheme requested for the URL. One of 'http', 'https', 'login',
	 *                                 'login_post', 'admin', 'relative', 'rest', 'rpc', or null.
	 */