Created
March 2, 2020 17:04
-
-
Save helgatheviking/f68d6983f98b86e703ab2fbfb8737383 to your computer and use it in GitHub Desktop.
Mix and Match: Disable Shipstation Compat
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Plugin Name: Mix and Match: Disable Shipstation Compat | |
* Plugin URI: https://woocommerce.com/products/woocommerce-mix-and-match-products/?aff=5151&cid=4347782 | |
* Description: This is a short description of what the plugin does. It's displayed in the WordPress admin area. | |
* Version: 1.0.0 | |
* Author: Kathy Darling | |
* Author URI: kathyisawesome.com | |
* License: GPL-2.0+ | |
* License URI: http://www.gnu.org/licenses/gpl-2.0.txt | |
* Text Domain: wc-mnm-disable-shipstation-compat | |
* Domain Path: /languages | |
*/ | |
// If this file is called directly, abort. | |
if ( ! defined( 'WPINC' ) ) { | |
die; | |
} | |
/** | |
* Disable MNM Compatibility | |
* | |
* @param array $module_paths | |
* return array | |
*/ | |
function kia_disable_mnm_compatibility_modules( $module_paths ) { | |
if( isset( $module_paths['shipstation'] ) ) { | |
unset( $module_paths['shipstation'] ); | |
} | |
return $module_paths; | |
} | |
add_filter( 'wc_mnm_compatibility_modules', 'kia_disable_mnm_compatibility_modules' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment