Hi!
That’s an interesting idea. I’ll run this by our dev team to check if that is possible. I believe that in the worst case scenario you could create a custom function to add the states as new countries (but I’m not sure if deleting the current ones would be possible).
Please stand by
Kind Regards,
-Roch
Hi!
So, our dev team checked and there are 2 filters which you can use: ‘sportspress_countries’ and ‘sportspress_continents’.
‘sportspress_countries ‘ passes through an array where the keys are 3-letter country codes, and the values are the full name of the country.’sportspress_continents’ passes through an array where the keys are the name of each continent, and the values are an array of country codes that belong to that continent.
They are also working on an example, but you can get started with this if you want.
Kind Regards,
-Roch
Thank you. Is there a specific spot to place filters in the plugin?
I’m not a developer, so I try to be very cautious when messing with plugins.
Thank you for looking into this. I appreciate it.
Hi!
I’d put that in a child theme actually, or a separated plugin. Adding that in the main plugin files may be risky indeed 🙂
But this is just the hook itself, so you’ll still need to process that via PHP to include your custom code there
Kind Regards,
-Roch
Hmmm. Okay. I’m savvy, but not that savvy when it comes to digging into the files. I’m not sure I want to do that.
Thank you.
No worries! In the future this kind of job will be easier as our dev team really liked that idea 🙂
Kind Regards,
-Roch