wooccm_deactivate_plugin_conditional

The WooCommerce Checkout Manager wooccm deactivate plugin conditional function.

Description

wooccm_deactivate_plugin_conditional(); 

Usage

  1. if ( !function_exists( 'wooccm_deactivate_plugin_conditional' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'woocommerce-checkout-manager/includes/classes/main.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = wooccm_deactivate_plugin_conditional(); 
  7.  

Defined (1)

The function is defined in the following location(s).

/includes/classes/main.php  
  1. function wooccm_deactivate_plugin_conditional() { 
  2. $name = 'woocommerce-checkout-manager/woocommerce-checkout-manager.php'; 
  3.  
  4. if ( !is_plugin_active( 'woocommerce/woocommerce.php' ) ) { 
  5. deactivate_plugins( $name ); 
  6.