Advertisements

use_ssl_preference

Definition:
function use_ssl_preference($user) {}

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

Parameters

  • object $user: User data object

Source code

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

}

3307

Advertisements

No comments yet... Be the first to leave a reply!

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: