WC_Payment_Token_Data_Store_Interface::get_users_default_token()
Returns an stdObject of a token for a user's default token. Should contain the fields token_id, gateway_id, token, user_id, type, is_default.
Method of the class: WC_Payment_Token_Data_Store_Interface{}
No Hooks.
Return
Object
.
Usage
$WC_Payment_Token_Data_Store_Interface = new WC_Payment_Token_Data_Store_Interface(); $WC_Payment_Token_Data_Store_Interface->get_users_default_token( $user_id );
- $user_id(int) (required)
- User ID.
WC_Payment_Token_Data_Store_Interface::get_users_default_token() WC Payment Token Data Store Interface::get users default token code WC 9.5.1
public function get_users_default_token( $user_id );