Title: Include Quick Chat Plugin without activating
Last modified: August 21, 2016

---

# Include Quick Chat Plugin without activating

 *  [peteincali2103](https://wordpress.org/support/users/peteincali2103/)
 * (@peteincali2103)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/include-quick-chat-plugin-without-activating/)
 * Hello, I am trying to limit resources, and only include the chat plugin when 
   using a certain post type. So I am trying to use a code such as:
 * ‘class My_Plugin {
 *  function __construct() {
 *  include(WP_PLUGIN_DIR . ‘/quick-chat/quick-chat.php’);
 *  }
    } // end class endif;
 * global $my_plugin;
    if (class_exists(“My_Plugin”) && !$my_plugin) { $my_plugin
   = new My_Plugin(); }’
 * This tries to load the chat when initiated by $quick_chat->quick_chat, however,
   it gets stuck on loading. Does anyone have any idea how I can selectively include
   the plugin without activating it?
 * [http://wordpress.org/plugins/quick-chat/](http://wordpress.org/plugins/quick-chat/)

The topic ‘Include Quick Chat Plugin without activating’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/quick-chat.svg)
 * [Quick Chat](https://wordpress.org/plugins/quick-chat/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/quick-chat/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/quick-chat/)
 * [Active Topics](https://wordpress.org/support/plugin/quick-chat/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/quick-chat/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/quick-chat/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [peteincali2103](https://wordpress.org/support/users/peteincali2103/)
 * Last activity: [12 years, 6 months ago](https://wordpress.org/support/topic/include-quick-chat-plugin-without-activating/)
 * Status: not resolved