WC_Payment_Token_Data_Store_Interface::set_default_status()
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.
Method of the class: WC_Payment_Token_Data_Store_Interface{}
No Hooks.
Return
String
.
Usage
$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.
- $status(true|false)
- If should update status.
Default: true
WC_Payment_Token_Data_Store_Interface::set_default_status() WC Payment Token Data Store Interface::set default status code WC 9.4.2
public function set_default_status( $token_id, $status = true );