You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem / specific use-case? Please describe.
"My goal is to use this plugin to show country-specific content on certain pages. (using the shortcodes provided by the plugin)
We have a certain set of countries which we will have specific content. (US, CA, GB, …).
But we also would want the option to be able to switch between these countries so you can access any country-specific content."
AJAX mode: changing the cookie
Non-AJAX mode: set a cookie, [ sign it with a secret key (so it can't be forged) ? ], and if set, it will override the geo lookup function ...
(Should it use the same cookie format than the AJAX mode?)
API:
PHP function geoip_detect2_set_override_for_this_client($record, $duration = -1) / geoip_detect2_set_override_for_this_client_data($data, $duration = -1) (can work in AJAX and non-AJAX mode, enriches data)
JS function window.geoip_detect.set_override(record, duration) / window.geoip_detect.set_override_data(data, duration) (only works in AJAX mode, no enrichment or via AJAX)
country_selector receives a new parameter "autosave" which calls the JS function
country_selector receives a new parameter "list" which lets you enumerate the countries you want to show
Is your feature request related to a problem / specific use-case? Please describe.
"My goal is to use this plugin to show country-specific content on certain pages. (using the shortcodes provided by the plugin)
We have a certain set of countries which we will have specific content. (US, CA, GB, …).
But we also would want the option to be able to switch between these countries so you can access any country-specific content."
https://wordpress.org/support/topic/region-select-2/
Describe the solution you'd like
"Also is it possible to overwrite the cookie with another value so it would load in the different country-specific content I mentioned?"
ToDos (details see post below):
window.geoip_detect.set_override
The text was updated successfully, but these errors were encountered: