Initial commit - Help Service for Coolify
This commit is contained in:
61
content/erweiterte-optionen.md
Normal file
61
content/erweiterte-optionen.md
Normal file
@@ -0,0 +1,61 @@
|
||||
---
|
||||
id: erweiterte-optionen
|
||||
title: Erweiterte Optionen
|
||||
icon: sliders
|
||||
description: Fortgeschrittene Konfiguration
|
||||
section: Tipps & Support
|
||||
tags: [Erweitert, Optionen, Hooks, Filter]
|
||||
related: [best-practices, general]
|
||||
order: 61
|
||||
---
|
||||
|
||||
# Erweiterte Optionen
|
||||
|
||||
Fortgeschrittene Konfigurationsmoeglichkeiten fuer Entwickler.
|
||||
|
||||
## WordPress Hooks
|
||||
|
||||
### Actions
|
||||
|
||||
```php
|
||||
// Nach Buchungsbestaetigung
|
||||
do_action( 'kurs_booking_confirmed', $buchung_id );
|
||||
|
||||
// Nach Stornierung
|
||||
do_action( 'kurs_booking_cancelled', $buchung_id );
|
||||
|
||||
// Vor E-Mail-Versand
|
||||
do_action( 'kurs_booking_before_email', $buchung_id, $email_type );
|
||||
```
|
||||
|
||||
### Filters
|
||||
|
||||
```php
|
||||
// E-Mail-Inhalt anpassen
|
||||
add_filter( 'kurs_booking_email_content', function( $content, $buchung_id ) {
|
||||
return $content . "\n\nZusaetzlicher Text";
|
||||
}, 10, 2 );
|
||||
|
||||
// Preis-Format aendern
|
||||
add_filter( 'kurs_booking_format_price', function( $formatted, $price ) {
|
||||
return number_format( $price, 2, ',', '.' ) . ' EUR';
|
||||
}, 10, 2 );
|
||||
```
|
||||
|
||||
## REST API
|
||||
|
||||
| Endpoint | Methode | Beschreibung |
|
||||
|----------|---------|--------------|
|
||||
| `/wp-json/kurs-booking/v1/kurse` | GET | Liste aller Kurse |
|
||||
| `/wp-json/kurs-booking/v1/buchung` | POST | Neue Buchung erstellen |
|
||||
| `/wp-json/kurs-booking/v1/verify` | POST | Token verifizieren |
|
||||
|
||||
## Debugging
|
||||
|
||||
| Option | Beschreibung |
|
||||
|--------|--------------|
|
||||
| **WP_DEBUG** | WordPress Debug-Modus |
|
||||
| **Log-Dateien** | `wp-content/debug.log` |
|
||||
| **E-Mail-Log** | Optional in Einstellungen |
|
||||
|
||||
> **Warnung:** Debug-Optionen nur in Entwicklungsumgebungen aktivieren!
|
||||
Reference in New Issue
Block a user