WC_Payment_Token::set_user_id( int $user_id )

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


Description Description


Parameters Parameters

$user_id

(Required) User ID.


Top ↑

Source Source

File: includes/abstracts/abstract-wc-payment-token.php

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

Top ↑

Changelog Changelog

Changelog
Version Description
2.6.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.