The wordpress plugin can be installed with a manual installation. You have to create a zip archive of the plugin/esp folder. Next step you have to activate the plugin
You have to set your ESP parameter on the plugin configuration section:
- host: the ESP domain uri
- environmentName: the ESP environment value
- final: The user session redirect uri (Important! You have to contact the ESP team for a custom final uri )
- apiKey: The api key useful for Backend Authentication
- attributes: The getKey attributes parameter
- level: The getKey level parameter
- spidType: The getKey spidType parameter
ESP_HOST=INSERT HOST PARAMETER (WITHOUT THE TRAILING SLASH)
ESP_ENVIRONMENT_NAME=INSERT ENVIRONMENT NAME PARAMETER
ESP_FINAL=INSERT FINAL URI (REDIRECT URI)
ESP_API_KEY=INSERT APIKEY PARAMETER
ESP_ATTRIBUTES=Base
ESP_LEVEL=1
ESP_SPID_TYPE= INSERT SPID TYPE
You can run a local instance of wordpress with the following command:
docker compose up esp-wordpress
Now you can:
- Go to http://localhost:8080;
- Complete all the installation steps;
- Install the esp plugin
- Activate the plugin
- Setup the plugin parameter
- Include in your theme the widget called
ESP
- Setup widget options
- Use the widget