force_ssl_admin

The timeline below displays how wordpress function force_ssl_admin has changed across different WordPress versions. If a version is not listed, refer to the next available version below.

WordPress Version: 6.1

/**
 * Determines whether to force SSL used for the Administration Screens.
 *
 * @since 2.6.0
 *
 * @param string|bool $force Optional. Whether to force SSL in admin screens. Default null.
 * @return bool True if forced, false if not forced.
 */
function force_ssl_admin($force = null)
{
    static $forced = false;
    if (!is_null($force)) {
        $old_forced = $forced;
        $forced = $force;
        return $old_forced;
    }
    return $forced;
}

WordPress Version: 5.5

/**
 * Whether to force SSL used for the Administration Screens.
 *
 * @since 2.6.0
 *
 * @param string|bool $force Optional. Whether to force SSL in admin screens. Default null.
 * @return bool True if forced, false if not forced.
 */
function force_ssl_admin($force = null)
{
    static $forced = false;
    if (!is_null($force)) {
        $old_forced = $forced;
        $forced = $force;
        return $old_forced;
    }
    return $forced;
}

WordPress Version: 4.3

/**
 * Whether to force SSL used for the Administration Screens.
 *
 * @since 2.6.0
 *
 * @staticvar bool $forced
 *
 * @param string|bool $force Optional. Whether to force SSL in admin screens. Default null.
 * @return bool True if forced, false if not forced.
 */
function force_ssl_admin($force = null)
{
    static $forced = false;
    if (!is_null($force)) {
        $old_forced = $forced;
        $forced = $force;
        return $old_forced;
    }
    return $forced;
}

WordPress Version: 4.0

/**
 * Whether to force SSL used for the Administration Screens.
 *
 * @since 2.6.0
 *
 * @param string|bool $force Optional. Whether to force SSL in admin screens. Default null.
 * @return bool True if forced, false if not forced.
 */
function force_ssl_admin($force = null)
{
    static $forced = false;
    if (!is_null($force)) {
        $old_forced = $forced;
        $forced = $force;
        return $old_forced;
    }
    return $forced;
}

WordPress Version: 3.7

/**
 * Whether to force SSL used for the Administration Screens.
 *
 * @since 2.6.0
 *
 * @param string|bool $force
 * @return bool True if forced, false if not forced.
 */
function force_ssl_admin($force = null)
{
    static $forced = false;
    if (!is_null($force)) {
        $old_forced = $forced;
        $forced = $force;
        return $old_forced;
    }
    return $forced;
}