use_ssl_preference

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

WordPress Version: 5.4

/**
 * Optional SSL preference that can be turned on by hooking to the 'personal_options' action.
 *
 * See the {@see 'personal_options'} action.
 *
 * @since 2.7.0
 *
 * @param WP_User $user User data object.
 */
function use_ssl_preference($user)
{
    ?>
	<tr class="user-use-ssl-wrap">
		<th scope="row"><?php 
    _e('Use https');
    ?></th>
		<td><label for="use_ssl"><input name="use_ssl" type="checkbox" id="use_ssl" value="1" <?php 
    checked('1', $user->use_ssl);
    ?> /> <?php 
    _e('Always use https when visiting the admin');
    ?></label></td>
	</tr>
	<?php 
}

WordPress Version: 5.1

/**
 * Optional SSL preference that can be turned on by hooking to the 'personal_options' action.
 *
 * See the {@see 'personal_options'} action.
 *
 * @since 2.7.0
 *
 * @param object $user User data object.
 */
function use_ssl_preference($user)
{
    ?>
	<tr class="user-use-ssl-wrap">
		<th scope="row"><?php 
    _e('Use https');
    ?></th>
		<td><label for="use_ssl"><input name="use_ssl" type="checkbox" id="use_ssl" value="1" <?php 
    checked('1', $user->use_ssl);
    ?> /> <?php 
    _e('Always use https when visiting the admin');
    ?></label></td>
	</tr>
	<?php 
}

WordPress Version: 4.6

/**
 * Optional SSL preference that can be turned on by hooking to the 'personal_options' action.
 *
 * See the {@see 'personal_options'} action.
 *
 * @since 2.7.0
 *
 * @param object $user User data object
 */
function use_ssl_preference($user)
{
    ?>
	<tr class="user-use-ssl-wrap">
		<th scope="row"><?php 
    _e('Use https');
    ?></th>
		<td><label for="use_ssl"><input name="use_ssl" type="checkbox" id="use_ssl" value="1" <?php 
    checked('1', $user->use_ssl);
    ?> /> <?php 
    _e('Always use https when visiting the admin');
    ?></label></td>
	</tr>
<?php 
}

WordPress Version: 4.1

/**
 * Optional SSL preference that can be turned on by hooking to the 'personal_options' action.
 *
 * @since 2.7.0
 *
 * @param object $user User data object
 */
function use_ssl_preference($user)
{
    ?>
	<tr class="user-use-ssl-wrap">
		<th scope="row"><?php 
    _e('Use https');
    ?></th>
		<td><label for="use_ssl"><input name="use_ssl" type="checkbox" id="use_ssl" value="1" <?php 
    checked('1', $user->use_ssl);
    ?> /> <?php 
    _e('Always use https when visiting the admin');
    ?></label></td>
	</tr>
<?php 
}

WordPress Version: 3.7

/**
 * Optional SSL preference that can be turned on by hooking to the 'personal_options' action.
 *
 * @since 2.7.0
 *
 * @param object $user User data object
 */
function use_ssl_preference($user)
{
    ?>
	<tr>
		<th scope="row"><?php 
    _e('Use https');
    ?></th>
		<td><label for="use_ssl"><input name="use_ssl" type="checkbox" id="use_ssl" value="1" <?php 
    checked('1', $user->use_ssl);
    ?> /> <?php 
    _e('Always use https when visiting the admin');
    ?></label></td>
	</tr>
<?php 
}