ActionScheduler_DBStore::unclaim_action
Remove the claim from an action.
Method of the class: ActionScheduler_DBStore{}
No Hooks.
Returns
null. Nothing (null).
Usage
$ActionScheduler_DBStore = new ActionScheduler_DBStore(); $ActionScheduler_DBStore->unclaim_action( $action_id );
- $action_id(int) (required)
- Action ID.
ActionScheduler_DBStore::unclaim_action() ActionScheduler DBStore::unclaim action code WC 10.8.1
public function unclaim_action( $action_id ) {
/**
* Global.
*
* @var \wpdb $wpdb
*/
global $wpdb;
$wpdb->update(
$wpdb->actionscheduler_actions,
array( 'claim_id' => 0 ),
array( 'action_id' => $action_id ),
array( '%s' ),
array( '%d' )
);
}