ActionScheduler_DBLogger::clear_deleted_action_logs()publicWC 1.0

Delete the action logs for an action.

Метод класса: ActionScheduler_DBLogger{}

Хуков нет.

Возвращает

null. Ничего (null).

Использование

$ActionScheduler_DBLogger = new ActionScheduler_DBLogger();
$ActionScheduler_DBLogger->clear_deleted_action_logs( $action_id );
$action_id(int) (обязательный)
Action ID.

Код ActionScheduler_DBLogger::clear_deleted_action_logs() WC 9.3.3

public function clear_deleted_action_logs( $action_id ) {
	/** @var \wpdb $wpdb */ //phpcs:ignore Generic.Commenting.DocComment.MissingShort
	global $wpdb;
	$wpdb->delete( $wpdb->actionscheduler_logs, array( 'action_id' => $action_id ), array( '%d' ) );
}