WC_Payment_Token::set_user_id()publicWC 2.6.0

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

Method of the class: WC_Payment_Token{}

No Hooks.

Return

null. Nothing (null).

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.

WC_Payment_Token::set_user_id() code WC 8.7.0

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