|
|
|
@ -176,14 +176,15 @@ class Wc_Cdp { |
|
|
|
|
|
|
|
$plugin_public = new Wc_Cdp_Public( $this->get_plugin_name(), $this->get_version() ); |
|
|
|
|
|
|
|
$this->loader->add_action( 'wp_enqueue_scripts', $plugin_public, 'enqueue_styles' ); |
|
|
|
if ( get_option( 'wc_cdp_enable_stylesheet' ) === 'yes' ) { |
|
|
|
$this->loader->add_action( 'wp_enqueue_scripts', $plugin_public, 'enqueue_styles' ); |
|
|
|
} |
|
|
|
$this->loader->add_action( 'wp_enqueue_scripts', $plugin_public, 'enqueue_scripts' ); |
|
|
|
|
|
|
|
$this->loader->add_action( 'woocommerce_add_to_cart', $plugin_public, 'maybe_display_bundle_modal', 10, 2 ); |
|
|
|
|
|
|
|
$this->loader->add_action( 'admin_post_wc_cdp_add_to_cart', $plugin_public, 'add_bundle_to_cart' ); |
|
|
|
$this->loader->add_action( 'admin_post_nopriv_wc_cdp_add_to_cart', $plugin_public, 'add_bundle_to_cart' ); |
|
|
|
// $this->loader->add_action( 'wp_loaded', $plugin_public, 'add_to_cart_multiple' , 15);
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|