| @@ -291,8 +291,19 @@ | ||
| 291 | 291 | add_action( 'admin_notices', array('WPFunnels\Admin\Notices\Notice', 'woocommerce_dependency_notice') ); |
| 292 | 292 | return; |
| 293 | 293 | }*/ |
| 294 | 294 | |
| 295 | + /** | |
| 296 | + * Store Checkout needs WooCommerce. While it is missing, keep the | |
| 297 | + * activation endpoint registered so the Store Checkout screen can | |
| 298 | + * install/activate WooCommerce without leaving the page. | |
| 299 | + * | |
| 300 | + * @since 3.13.1 | |
| 301 | + */ | |
| 302 | + if ( ! Wpfnl_functions::is_wc_active() ) { | |
| 303 | + add_action( 'wp_ajax_plugin_install_success', array( $this, 'plugin_install_success' ) ); | |
| 304 | + } | |
| 305 | + | |
| 295 | 306 | // load core modules |
| 296 | 307 | add_action( 'admin_footer', array($this, 'admin_footer_style') ); |
| 297 | 308 | add_action( 'wpfunnels/pro_init', array( $this, 'after_pro_plugin_init' ) ); |
| 298 | 309 | add_action( 'plugins_loaded', array($this, 'load_plugin'), 9 ); |