Warning: This function has been deprecated. Use force_ssl_admin() instead.

force_ssl_login() WordPress Function

The force_ssl_login() function is used to force a user to login over a secure SSL connection. This is useful for sites that transmit sensitive data, such as financial information. Once a user is logged in, they will be redirected to the SSL version of the site.

force_ssl_login( string|bool $force = null ) #

Whether SSL login should be forced.


Description

Top ↑

See also


Top ↑

Parameters

$force

(string|bool)(Optional)Whether to force SSL login.

Default value: null


Top ↑

Return

(bool) True if forced, false if not forced.


Top ↑

Source

File: wp-includes/deprecated.php

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


Top ↑

Changelog

Changelog
VersionDescription
4.4.0Use force_ssl_admin()
2.6.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.

Show More