Yeh PHP is my day job but WordPress isn’t ??
However, yes, you understand me correctly. Having done some more looking at existing code I *think* the answer might be to require ‘wp-load.php’. I do need access to the API for (if nothing else) using the options api to get at my settings (I got that much working!).
It’s really only the link thats troubling me. I suppose the question is “what is the easy way to execute some arbitrary function in a plugin?”. Most examples take the (unsuitable) angle of a function that generates output when the page is displayed but this isn’t what I need – it’s a simple “press this button” link.
Anyway, I’d appreciate any comment if that is a sensible way to do it.