filter_SSL( string $url )
Formats a URL to use https.
Description Description
Useful as a filter.
Parameters Parameters
- $url
-
(string) (Required) URL
Return Return
(string) URL with https as the scheme
Source Source
File: wp-includes/ms-functions.php
function filter_SSL( $url ) { // phpcs:ignore WordPress.NamingConventions.ValidFunctionName.FunctionNameInvalid if ( ! is_string( $url ) ) { return get_bloginfo( 'url' ); // Return home blog url with proper scheme } if ( force_ssl_content() && is_ssl() ) { $url = set_url_scheme( $url, 'https' ); } return $url; }
Expand full source code Collapse full source code View on Trac
Changelog Changelog
Version | Description |
---|---|
2.8.5 | Introduced. |