Advertisement
sunilwu

Untitled

Oct 20th, 2014
153
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.39 KB | None | 0 0
  1. if(!defined('ABSPATH')) {
  2. exit();
  3. }
  4.  
  5. /*
  6. *set up constants
  7. */
  8.  
  9.  
  10. /**
  11. /* this is the plug-in directory name
  12. */
  13. if(!defined("FN_EVENTS")) {
  14. define("FN_EVENTS", trim(dirname(plugin_basename(__FILE__)), '/'));
  15. }
  16.  
  17. /**
  18. /* this is the path to the plug-in's directory
  19. */
  20. if(!defined("FN_EVENTS_DIR")) {
  21. define("FN_EVENTS_DIR", WP_PLUGIN_DIR . '/' . FN_EVENTS);
  22. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement