ActionScheduler_DBStore::unclaim_action
Remove the claim from an action.
Метод класса: ActionScheduler_DBStore{}
Хуков нет.
Возвращает
void. Ничего (null).
Использование
$ActionScheduler_DBStore = new ActionScheduler_DBStore(); $ActionScheduler_DBStore->unclaim_action( $action_id );
- $action_id(int) (обязательный)
- Action ID.
Код ActionScheduler_DBStore::unclaim_action() ActionScheduler DBStore::unclaim action WC 11.2.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' )
);
}