-
Notifications
You must be signed in to change notification settings - Fork 63
Constants
Constants are set via the wp-config.php file and will override any settings configured at the network or site level.
accepted values: disabled
, backup
, cdn
, stateless
default value: cdn
Scans post content and meta during presentation and replaces local media file urls with GCS urls. This setting does not modify your database.
accepted values: true
, false
default value: true
Upload image thumbnails generated by your theme and plugins that do not register media objects with the media library.
accepted values: true
, false
default value: false
The name of the GCS bucket.
If you would like files to be uploaded into a particular folder within the bucket, define that path here.
Private key in JSON text format for the service account WP-Stateless will use to connect to your Google Cloud project and bucket.
File path to private key file in JSON format.
Override the default cache control assigned by GCS.
accepted values: reference Google Cloud Documentation.
default value: public, max-age=36000, must-revalidate
Delete the GCS file when the file is deleted from WordPress.
accepted values: true
, false
default value: true
Replace the default GCS domain with your own custom domain. This will require you to configure a CNAME.
default value: storage.googleapis.com
Prepends a random set of numbers and letters to the filename. This is useful for preventing caching issues when uploading files that have the same filename.
accepted values: true
, false
default value: true
Hide the WP-Stateless settings panel.
accepted values: true
, false
default value: false
Hide the WP-Stateless setup assistant.
accepted values: true
, false
default value: false
Enables Chrome Logger log output.
accepted values: true
, false
default value: false
Upload image thumbnails generated by your theme and plugins that do not register media objects with the media library.
accepted values: true
, false
default value: false
Adds compatibility support for Advanced Custom Fields Image Crop Addon and ensures compatibility with image cropping and WP-Stateless in the Stateless mode.
accepted values: true
, false
default value: false
Adds compatibility support for Easy Digital Downloads and ensures compatibility with image cropping and WP-Stateless in the Stateless mode.
accepted values: true
, false
default value: false
Ensures compatibility with CSS files generated by SiteOrigin.
accepted values: true
, false
default value: false
Enables support for these Gravity Forms features: file upload field, post image field, custom file upload field type.
accepted values: true
, false
default value: false
Enables support for these WPBakery Page Builder features: single image element.
accepted values: true
, false
default value: false
Enables support for these Imagify Image Optimizer features: auto-optimize images on upload, bulk optimizer, resize larger images, optimization levels (normal, aggressive, ultra).
accepted values: true
, false
default value: false
Ensures compatibility with ShortPixel Image Optimizer.
accepted values: true
, false
default value: false
Ensures compatibility with WPForms.
accepted values: true
, false
default value: false
Ensures compatibility with WP Smush.
accepted values: true
, false
default value: false