I'm trying to run a function from another plugin and wanted to know if this was how I should do it.
function update_permalinks( $args )
$blog_id = $args;
$switch = true;
switch_to_blog( $blog_id );
return "Completed Action";
Basically I'm trying to work with xmlrpc and control the application remotely and i've got most of it working except this doesn't seem to be working, although I could be wrong. I've not thoroughly tested it.
Suggestions, comments, etc.. welcome...