WordPress at Your Fingertips
function is not described

WC_Payment_Token_Data_Store_Interface::set_default_status() public WC 1.0

Update's a tokens default status in the database. Used for quickly looping through tokens and setting their statuses instead of creating a bunch of objects.

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

No Hooks.




$WC_Payment_Token_Data_Store_Interface = new WC_Payment_Token_Data_Store_Interface();
$WC_Payment_Token_Data_Store_Interface->set_default_status( $token_id, $status );
$token_id(int) (required)
Token ID.
If should update status.
Default: true

Code of WC_Payment_Token_Data_Store_Interface::set_default_status() WC 5.8.0

public function set_default_status( $token_id, $status = true );