Title: Combining Plugin and Theme
Last modified: February 26, 2018

---

# Combining Plugin and Theme

 *  [lazercaveman](https://wordpress.org/support/users/lazercaveman/)
 * (@lazercaveman)
 * [8 years, 3 months ago](https://wordpress.org/support/topic/combining-plugin-and-theme/)
 * Hello [@all](https://wordpress.org/support/users/all/),
 * I’d like to know if there is a documented way how to integrate a WP-Theme into
   a plugin, so that it will be automaticly be activated while the plugin running.
 * So i could to give one product to my costumer which will do everything he needs
   in fronetd as well as in backend…
 * kind regards and Thank you 🙂
    -  This topic was modified 8 years, 3 months ago by [lazercaveman](https://wordpress.org/support/users/lazercaveman/).

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

 *  [a2hostinglk](https://wordpress.org/support/users/a2hostinglk/)
 * (@a2hostinglk)
 * [8 years, 3 months ago](https://wordpress.org/support/topic/combining-plugin-and-theme/#post-10015585)
 * Please refer to this documentation: [https://codex.wordpress.org/Developer_Documentation](https://codex.wordpress.org/Developer_Documentation)
 *  Moderator [bcworkz](https://wordpress.org/support/users/bcworkz/)
 * (@bcworkz)
 * [8 years, 3 months ago](https://wordpress.org/support/topic/combining-plugin-and-theme/#post-10017051)
 * [https://developer.wordpress.org/reference/functions/switch_theme/](https://developer.wordpress.org/reference/functions/switch_theme/)
 *  Thread Starter [lazercaveman](https://wordpress.org/support/users/lazercaveman/)
 * (@lazercaveman)
 * [8 years, 3 months ago](https://wordpress.org/support/topic/combining-plugin-and-theme/#post-10020119)
 * Hello, thanks for answers,
 * the client shouldnt have to do anything but to install the plugin, so the related(
   and inside of the plugin included theme) should get installed and activated by
   activating the plugin.
 * So it’s not about changing the theme.php, it’s about automization of processes
   out of the plugin. I want to realize a plugin and frontent-theme combination.
 * note: i did not found a solution out of the codex 😉
    -  This reply was modified 8 years, 3 months ago by [lazercaveman](https://wordpress.org/support/users/lazercaveman/).
 *  Moderator [bcworkz](https://wordpress.org/support/users/bcworkz/)
 * (@bcworkz)
 * [8 years, 3 months ago](https://wordpress.org/support/topic/combining-plugin-and-theme/#post-10021229)
 * Once the theme files are in place, all you need to do is switch to that theme.
   The files can be placed with normal PHP file handling functions. The problem 
   is mainly that the themes folder is not always where it normally is by default.
   The global $wp_theme_directories will contain the proper paths where additional
   themes can be installed.
 * I don’t know when this is established, it probably isn’t set when plugins are
   loaded, so some action like “init” should be hooked before trying to use this
   value.

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

The topic ‘Combining Plugin and Theme’ is closed to new replies.

## Tags

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

 * In: [Developing with WordPress](https://wordpress.org/support/forum/wp-advanced/)
 * 4 replies
 * 3 participants
 * Last reply from: [bcworkz](https://wordpress.org/support/users/bcworkz/)
 * Last activity: [8 years, 3 months ago](https://wordpress.org/support/topic/combining-plugin-and-theme/#post-10021229)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
