WordPress at Your Fingertips
function is not described

WC_Payment_Token::set_user_id() public WC 2.6.0

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

{} It's a method of the class: WC_Payment_Token{}

No Hooks.

Return

null. Nothing.

Usage

$WC_Payment_Token = new WC_Payment_Token();
$WC_Payment_Token->set_user_id( $user_id );
$user_id(int) (required)
User ID.

Changelog

Since 2.6.0 Introduced.

Code of WC_Payment_Token::set_user_id() WC 5.5.2

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