public static function settingsSearchUsersGetItem() { if (!current_user_can('manage_options')) { exit; } if (!empty($_GET['q']) and strlen(trim($_GET['q'])) > 0 and !empty($_GET['fieldName'])) { if ($user = get_user_by('login', $_GET['q'])) { echo CMA_SettingsViewAbstract::renderUsersListItem($_GET['fieldName'], $user->ID, $user->user_login); } } exit; }
public function renderOptionDescription($option) { return sprintf('<td>%s</td>', parent::renderOptionDescription($option)); }