A client of mine is using a membership plugin that’s, unfortunately, a bit buggy and it messes with the permalinks somehow a few times a day.
So, we end up with site wide 404 errors.
I’ve created a script that emails us when this happens, but don’t have a fix from the developers of the plugin yet.
So to fix it we have to go into the permalinks settings and submit the form.
Is there a way I can have a script do this remotely? It’ll run on the same server, but I just need to have that form process automatically when 404 errors are noticed.