ActionScheduler_wpPostStore::mark_migrated
Mark action as migrated when there is an error deleting the action.
Метод класса: ActionScheduler_wpPostStore{}
Хуков нет.
Возвращает
null. Ничего (null).
Использование
$ActionScheduler_wpPostStore = new ActionScheduler_wpPostStore(); $ActionScheduler_wpPostStore->mark_migrated( $action_id );
- $action_id(int) (обязательный)
- Action ID.
Код ActionScheduler_wpPostStore::mark_migrated() ActionScheduler wpPostStore::mark migrated WC 11.1.2
public function mark_migrated( $action_id ) {
wp_update_post(
array(
'ID' => $action_id,
'post_status' => 'migrated',
)
);
}