ActionScheduler_wpPostStore::mark_migrated
Mark action as migrated when there is an error deleting the action.
Method of the class: ActionScheduler_wpPostStore{}
No Hooks.
Returns
null. Nothing (null).
Usage
$ActionScheduler_wpPostStore = new ActionScheduler_wpPostStore(); $ActionScheduler_wpPostStore->mark_migrated( $action_id );
- $action_id(int) (required)
- Action ID.
ActionScheduler_wpPostStore::mark_migrated() ActionScheduler wpPostStore::mark migrated code WC 10.8.1
public function mark_migrated( $action_id ) {
wp_update_post(
array(
'ID' => $action_id,
'post_status' => 'migrated',
)
);
}