use_ssl_preference() – Optional SSL preference that can be turned on by hooking to the ‘personal_options’ action.

You appear to be a bot. Output may be restricted

Description

Optional SSL preference that can be turned on by hooking to the 'personal_options' action.

See the personal_options action.

Usage

use_ssl_preference( $user );

Parameters

$user
( WP_User ) required – User data object.

Returns

void

Source

File name: wordpress/wp-admin/includes/user.php
Lines:

1 to 8 of 8
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
}
 

 View on GitHub View on Trac