wpseek.com
Eine auf WordPress spezialiserte Suchmaschine für Entwickler und Theme-Autoren
filter_ssl › WordPress Function
Seit2.8.5
Veraltetn/v
› filter_ssl ( $url )
| Parameter: |
|
| Gibt zurück: |
|
| Definiert in: |
|
| Codex: |
Formats a URL to use https.
Useful as a filter.Quellcode
function filter_SSL( $url ) { // phpcs:ignore WordPress.NamingConventions.ValidFunctionName.FunctionNameInvalid
if ( ! is_string( $url ) ) {
return get_bloginfo( 'url' ); // Return home site URL with proper scheme.
}
if ( force_ssl_content() && is_ssl() ) {
$url = set_url_scheme( $url, 'https' );
}
return $url;
}