I am outsourcing some work and they are using the Theme Editor to add PHP to my site.
For example, this bit of code https://docs.mylistingtheme.com/article/after-importing-listings-they-are-not-shown-in-explore-page/ is something that I have put into my theme - to invoke it you need to use the querystring http://Yoursite.com/?geolocate_listings=1
This works fine when logged in as Admin role, however I made a custom Role called "TempCode" that has the Capability EditTheme which lets that user edit the theme fucntions.php file.
However, when they try to run it with http://Yoursite.com/?geolocate_listings=1 when logged in as NON admin it just redirects to the home page.
So there's some permissions handler that is check if they have rights to execute that added PHP code - what is the Capability that I need to add to the role to allow them to run it?