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