1
2
3
4
if( !defined('MY_PLUGIN_DIR') )      { define('MY_PLUGIN_DIR', plugin_dir_path( __FILE__ )); }
if( !defined('MY_PLUGIN_URL') )      { define('MY_PLUGIN_URL', plugin_dir_url( __FILE__ )); }
if( !defined('MY_PLUGIN_FILE') )     { define('MY_PLUGIN_FILE',  __FILE__ ); }
if( !defined('MY_PLUGIN_VERSION') )  { define('MY_PLUGIN_VERSION', 'X.X'); }
Define basic plugin constants

Leave a Reply

Your email address will not be published. Required fields are marked *