ActionScheduler_DBLogger::clear_deleted_action_logs()publicWC 1.0

Delete the action logs for an action.

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

Хуков нет.

Возвращает

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 6.9.4

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' ) );
}