Title: Plugin directory constant definitions
Last modified: August 30, 2016

---

# Plugin directory constant definitions

 *  Resolved [tmuikku](https://wordpress.org/support/users/tmuikku/)
 * (@tmuikku)
 * [10 years, 7 months ago](https://wordpress.org/support/topic/plugin-directory-constant-definitions/)
 * Yello,
 * could you move these definitions inside the cf7bs_maybe_init() function please.
 *     ```
       define( 'CF7BS_MAINFILE', __FILE__ );
       define( 'CF7BS_PATH', untrailingslashit( plugin_dir_path( CF7BS_MAINFILE ) ) );
       define( 'CF7BS_URL', untrailingslashit( plugin_dir_url( CF7BS_MAINFILE ) ) );
       define( 'CF7BS_BASENAME', plugin_basename( CF7BS_MAINFILE ) );
       ```
   
 * I’ve got multisite setup which uses domain mapping, eg. subdomain sites have 
   their own TLD domains.
 * Now your plugin sets the urls before domain mapping has its filters set. Urls
   should be set after all plugins loaded, in the cf7bs_maybe_init() function.
 * At the moment your plugin assets get different domain than the site has, and 
   this affects things like minification.
 * Thanks
 * [https://wordpress.org/plugins/bootstrap-for-contact-form-7/](https://wordpress.org/plugins/bootstrap-for-contact-form-7/)

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

 *  Plugin Author [Felix Arntz](https://wordpress.org/support/users/flixos90/)
 * (@flixos90)
 * [10 years, 7 months ago](https://wordpress.org/support/topic/plugin-directory-constant-definitions/#post-6677383)
 * Hi tmuikku,
 * thanks for letting me know. I did not consider multisites when I initially developed
   the plugin. If you find any more caveats there, I’d appreciate if you made me
   aware.
 * I will take care of your above proposal in the next release.
 *  Plugin Author [Felix Arntz](https://wordpress.org/support/users/flixos90/)
 * (@flixos90)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/plugin-directory-constant-definitions/#post-6677458)
 * Hi again,
 * sorry it took a while, but I just released a new version with a fix to your issue.
   Hope it works now!

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

The topic ‘Plugin directory constant definitions’ is closed to new replies.

 * ![](https://ps.w.org/bootstrap-for-contact-form-7/assets/icon-256x256.png?rev
   =1021147)
 * [Bootstrap for Contact Form 7](https://wordpress.org/plugins/bootstrap-for-contact-form-7/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/bootstrap-for-contact-form-7/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/bootstrap-for-contact-form-7/)
 * [Active Topics](https://wordpress.org/support/plugin/bootstrap-for-contact-form-7/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/bootstrap-for-contact-form-7/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/bootstrap-for-contact-form-7/reviews/)

## Tags

 * [asset](https://wordpress.org/support/topic-tag/asset/)
 * [domain mapping](https://wordpress.org/support/topic-tag/domain-mapping/)

 * 2 replies
 * 2 participants
 * Last reply from: [Felix Arntz](https://wordpress.org/support/users/flixos90/)
 * Last activity: [10 years, 6 months ago](https://wordpress.org/support/topic/plugin-directory-constant-definitions/#post-6677458)
 * Status: resolved