Add setting for cookie name prefix to plugin settings #892
Labels
Good First Issue
Scope: Improvement
Code changes including new features or enhancements to the library.
Checklist
Describe the problem you'd like to have solved
v5 appears to have removed the hooks mentioned in this issue. I am using pantheon, and need to prefix the cookie names with
STYXKEY_
to avoid cookies being lost due to the CDN.Describe the ideal solution
The ideal solution would be to add an optional field to the plugin's settings in the WordPress admin dashboard to set the SDK configuration object's storage IDs with the prefix. This would save custom work needing to be done to achieve this with the plugin.
Alternatives and current workarounds
I achieved a workaround by adding a
plugins_loaded
action in functions.php of my site as follows:I was able to update the configuration of the SDK by using this method. However, it took me a while of reading the source code of the plugin and SDK to find this solution, so I am proposing adding a setting in the Plugin settings on the WordPress admin dashboard.
Additional context
Pantheon Cache Docs for reference here.
The text was updated successfully, but these errors were encountered: