ID; } else { wp_die(__('Invalid user ID.')); } } elseif ( !get_userdata($user_id) ) { wp_die( __('Invalid user ID.') ); } $all_post_caps = array('posts', 'pages'); $user_can_edit = false; foreach ( $all_post_caps as $post_cap ) $user_can_edit |= current_user_can("edit_$post_cap"); /** * 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) { ?>