WC_Payment_Token::set_user_id()
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() WC Payment Token::set user id code WC 9.7.1
public function set_user_id( $user_id ) { $this->set_prop( 'user_id', absint( $user_id ) ); }