So fügen Sie S3-Dienste programmgesteuert hinzu

Starting from BackWPup version 3.6.10 is possible to add new S3 services to the default list through the filter hook backwpup_s3_destination. Every service we need to add can be set via an array that specifies the label, the region and the url of the service we want to add. Here below we set an example:…

Startseite Häufig gestellte Fragen So fügen Sie S3-Dienste programmgesteuert hinzu

Starting from BackWPup version 3.6.10 is possible to add new S3 services to the default list through the filter hook backwpup_s3_destination.

Jeder Dienst, den wir hinzufügen möchten, kann über ein Array festgelegt werden, das die Bezeichnung, die Region und die URL des gewünschten Dienstes angibt.
Nachfolgend finden Sie ein Beispiel:

add_filter( 'backwpup_s3_destination', function ( $destinations ) {
        return array_merge( array(array(
                        'label'    => __( 'FirstServiceTest: AMS3', 'backwpup' ),
                        'region'   => 'ams3',
                        'base_url' => 'https://example.com',
                ),
                array(
                        'label'    => __( 'SecondServiceTest: AMS', 'backwpup' ),
                        'region'   => 'nl-ams',
                        'base_url' => 'https://example.com',
                )
        ), $destinations );
} );

In diesem Beispiel definieren wir zwei Arrays, eines für den „FirstServiceTest“ und ein zweites für den „SecondServiceTest“.
Diese neuen Dienste sind nun in der S3-Dienste-Liste für die entsprechenden Jobs verfügbar.

Schützen Sie Ihre WordPress

Sorgen Sie mit BackWPup Pro dafür, dass Ihre Website-Daten den Schutz erhalten, den sie verdienen.