WC_Customer::get_username()
Return the customer's username.
Метод класса: WC_Customer{}
Хуков нет.
Возвращает
Строку
.
Использование
$WC_Customer = new WC_Customer(); $WC_Customer->get_username( $context );
- $context(строка)
- What the value is for. Valid values are 'view' and 'edit'.
По умолчанию: 'view'
Список изменений
С версии 3.0.0 | Введена. |
Код WC_Customer::get_username() WC Customer::get username WC 7.5.1
public function get_username( $context = 'view' ) { return $this->get_prop( 'username', $context ); }