diff --git a/1984-connector-for-dk-and-woocommerce.php b/1984-connector-for-dk-and-woocommerce.php index e956d1c..1e08dcb 100644 --- a/1984-connector-for-dk-and-woocommerce.php +++ b/1984-connector-for-dk-and-woocommerce.php @@ -19,6 +19,10 @@ namespace NineteenEightyFour\NineteenEightyWoo; +if ( ! defined( 'ABSPATH' ) ) { + exit; +} + require plugin_dir_path( __FILE__ ) . 'vendor/autoload.php'; new Hooks\Admin(); diff --git a/views/admin.php b/views/admin.php index 172758c..0d5103d 100644 --- a/views/admin.php +++ b/views/admin.php @@ -7,6 +7,10 @@ use NineteenEightyFour\NineteenEightyWoo\Import\SalesPayments; use NineteenEightyFour\NineteenEightyWoo\Hooks\KennitalaField; +if ( ! defined( 'ABSPATH' ) ) { + exit; +} + ?> <div class="wrap nineteen-eighty-woo-wrap" diff --git a/views/product_options_advanced_partial.php b/views/product_options_advanced_partial.php index e4141ab..93997ab 100644 --- a/views/product_options_advanced_partial.php +++ b/views/product_options_advanced_partial.php @@ -5,6 +5,10 @@ use NineteenEightyFour\NineteenEightyWoo\Helpers\Product as ProductHelper; use NineteenEightyFour\NineteenEightyWoo\Config; +if ( ! defined( 'ABSPATH' ) ) { + exit; +} + global $post; $wc_product = new WC_Product( $post ); diff --git a/views/product_options_pricing_partial.php b/views/product_options_pricing_partial.php index 6083d43..2e64b1a 100644 --- a/views/product_options_pricing_partial.php +++ b/views/product_options_pricing_partial.php @@ -5,6 +5,10 @@ use NineteenEightyFour\NineteenEightyWoo\Helpers\Product as ProductHelper; use NineteenEightyFour\NineteenEightyWoo\Config; +if ( ! defined( 'ABSPATH' ) ) { + exit; +} + global $post; $wc_product = new WC_Product( $post ); diff --git a/views/product_options_sku_partial.php b/views/product_options_sku_partial.php index 5b4bf60..64f847d 100644 --- a/views/product_options_sku_partial.php +++ b/views/product_options_sku_partial.php @@ -4,6 +4,10 @@ use NineteenEightyFour\NineteenEightyWoo\Config; +if ( ! defined( 'ABSPATH' ) ) { + exit; +} + global $post; $wc_product = new WC_Product( $post );