Title: Execute plugin outside dashboard
Last modified: August 21, 2016

---

# Execute plugin outside dashboard

 *  Resolved [Dan-BTP](https://wordpress.org/support/users/dan-btp/)
 * (@dan-btp)
 * [12 years, 2 months ago](https://wordpress.org/support/topic/execute-plugin-outside-dashboard/)
 * Is it possible to execute a plugin from a PHP script outside the WordPress dashboard?
 * I have an XML file, Blog1.xml, that was generated by the WordPress export function.
   I need to import this file into Blog2, as though I logged into the Blog2 dashboard
   and chose Tools > Import > WordPress. However, I need to be able to do this in
   a PHP script outside of the WordPress dashboard. Is this possible?
 * Thanks!

Viewing 2 replies - 1 through 2 (of 2 total)

 *  [bemdesign](https://wordpress.org/support/users/bemdesign/)
 * (@bemdesign)
 * [12 years, 2 months ago](https://wordpress.org/support/topic/execute-plugin-outside-dashboard/#post-4724332)
 * If you’re good with PHP and programming concepts you probably could. As in it’s
   not out of the realm of possibility.
 * The tricky parts as I see it would be:
    1) Figuring out what would trigger your
   PHP code to run 2) Communicating between two servers on possibly two different
   domains (cross domain communication) 3) Making sure your code is secure (you 
   don’t need someone to trick your code into loading up a malicious XML file) 4)
   Making sure your code has proper error checks and validation to make sure everything
   runs correctly (so it doesn’t crash your server if something fails or goes wrong)
 * And of course, the search engine penalty for having the same content posted on
   two different websites (i.e. if Google and other search engines catch you trying
   to bump up your rankings this way – your sites may be delisted from Google).
 *  Thread Starter [Dan-BTP](https://wordpress.org/support/users/dan-btp/)
 * (@dan-btp)
 * [12 years, 2 months ago](https://wordpress.org/support/topic/execute-plugin-outside-dashboard/#post-4724341)
 * Thank you for your reply!
 * This is only for internal use to update or merge a release version of the blog
   with a test (new design) version of the same blog (same server; just two completely
   separate WordPress sites). The test version is excluded from search engines, 
   so duplicate content is not a problem.
 * I can handle the trigger for when to run it. I just don’t know how to do it in
   PHP. Can you suggest some code to get me started? Thanks!

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Execute plugin outside dashboard’ is closed to new replies.

## Tags

 * [Import](https://wordpress.org/support/topic-tag/import/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 2 replies
 * 2 participants
 * Last reply from: [Dan-BTP](https://wordpress.org/support/users/dan-btp/)
 * Last activity: [12 years, 2 months ago](https://wordpress.org/support/topic/execute-plugin-outside-dashboard/#post-4724341)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
