Skip to content

Instantly share code, notes, and snippets.

@strangerstudios
Created April 24, 2014 16:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save strangerstudios/11261530 to your computer and use it in GitHub Desktop.
Save strangerstudios/11261530 to your computer and use it in GitHub Desktop.
Use TwentyTen theme for XMLPRC Requests.
function xmlrpc_template($template)
{
if($_SERVER['SCRIPT_NAME'] == "/xmlrpc.php")
return "twentyten";
else
return $template;
}
add_filter('template', 'xmlrpc_template');
add_filter('option_template', 'xmlrpc_template');
add_filter('option_stylesheet', 'xmlrpc_template');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment