W3cubDocs

/WordPress

force_ssl_login( string|bool $force = null ): bool

Whether SSL login should be forced.

Description

See also

Parameters

$forcestring|booloptional
Optional Whether to force SSL login.

Default:null

Return

bool True if forced, false if not forced.

Source

function force_ssl_login( $force = null ) {
	_deprecated_function( __FUNCTION__, '4.4.0', 'force_ssl_admin()' );
	return force_ssl_admin( $force );
}

Changelog

Version Description
4.4.0 Use force_ssl_admin()
2.6.0 Introduced.

© 2003–2024 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/functions/force_ssl_login