To Force SSL Logins
The constant FORCE_SSL_LOGIN can be set to true to force all logins to happen over SSL. This (and all other such definitions) must be placed before
/* That’s all, stop editing! Happy blogging. */
…
require_once(ABSPATH . ‘wp-settings.php’);
in the file, otherwise they will not take effect.
Example
define(‘FORCE_SSL_LOGIN’, true);
To Force SSL Logins and SSL Admin Access
The constant FORCE_SSL_ADMIN can be set to true to force all logins and all admin sessions to happen over SSL.
Example
define(‘FORCE_SSL_ADMIN’, true);