Title: Quick fix for SE_DOMAIN Hardcoded Path
Last modified: August 22, 2016

---

# Quick fix for SE_DOMAIN Hardcoded Path

 *  [Jose Luis SAYAGO](https://wordpress.org/support/users/iluminatus/)
 * (@iluminatus)
 * [11 years, 7 months ago](https://wordpress.org/support/topic/patch-for-correcting-se_domain-hardcoded-path/)
 * Hello, I just wanted to provide you with a quick fix to make your plugin work
   from folders different to the default `wp-content/plugins`.
 * On line 29 from `simple-events-calendar.php`:
 *     ```
       // Replace this line
       define('SE_DOMAIN',get_bloginfo('url').'/wp-content/plugins/simple-events-calendar/');
       // with this one
       define('SE_DOMAIN', plugin_dir_url(__FILE__) );
       ```
   
 * This way everything will work even when plugins are located outside `wp-content`
   folder.
 * Cheers,
    José SAYAGO.
 * [https://wordpress.org/plugins/simple-events-calendar/](https://wordpress.org/plugins/simple-events-calendar/)

The topic ‘Quick fix for SE_DOMAIN Hardcoded Path’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/simple-events-calendar_d2d7d3.svg)
 * [Simple Events Calendar](https://wordpress.org/plugins/simple-events-calendar/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/simple-events-calendar/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/simple-events-calendar/)
 * [Active Topics](https://wordpress.org/support/plugin/simple-events-calendar/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/simple-events-calendar/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/simple-events-calendar/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [Jose Luis SAYAGO](https://wordpress.org/support/users/iluminatus/)
 * Last activity: [11 years, 7 months ago](https://wordpress.org/support/topic/patch-for-correcting-se_domain-hardcoded-path/)
 * Status: not resolved