WC_Payment_Token::set_user_id()publicWC 2.6.0

Set the user ID for the user associated with this order.

Метод класса: WC_Payment_Token{}

Хуков нет.

Возвращает

null. Ничего (null).

Использование

$WC_Payment_Token = new WC_Payment_Token();
$WC_Payment_Token->set_user_id( $user_id );
$user_id(int) (обязательный)
User ID.

Список изменений

С версии 2.6.0 Введена.

Код WC_Payment_Token::set_user_id() WC 8.7.0

public function set_user_id( $user_id ) {
	$this->set_prop( 'user_id', absint( $user_id ) );
}