public function __construct() {
if ( ! defined( 'WDS_CMB2_Date_Range_BASENAME' ) ) {
define( 'WDS_CMB2_Date_Range_BASENAME', plugin_basename( __FILE__ ));
}
if ( ! defined( 'PW_GALLERY_URL' ) ) {
define( 'WDS_CMB2_Date_Range_URL', plugin_dir_url( __FILE__ ));
}
if ( ! defined( 'WDS_CMB2_Date_Range_DIR' ) ) {
define( 'WDS_CMB2_Date_Range_DIR', plugin_dir_path( __FILE__ ));
}
$this->basename = WDS_CMB2_Date_Range_BASENAME;
$this->url = WDS_CMB2_Date_Range_URL;
$this->path = WDS_CMB2_Date_Range_DIR;
}
This is an idea using constants to customize the attributes above, I can customize my structure of theme
This is an idea using constants to customize the attributes above, I can customize my structure of theme