Use standarized plugin file path constant

This commit is contained in:
Anass Rahou 2019-11-04 17:27:30 -05:00
parent a6819ad495
commit 2c01ddf09d
1 changed files with 1 additions and 1 deletions

View File

@ -39,7 +39,7 @@ if ( version_compare( PHP_VERSION, '5.6.0', '>=' ) ) {
// Include the main WooCommerce class.
if ( ! class_exists( 'WooCommerce', false ) ) {
include_once dirname( __FILE__ ) . '/includes/class-woocommerce.php';
include_once dirname( WC_PLUGIN_FILE ) . '/includes/class-woocommerce.php';
}
/**