Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save helgatheviking/f68d6983f98b86e703ab2fbfb8737383 to your computer and use it in GitHub Desktop.
Save helgatheviking/f68d6983f98b86e703ab2fbfb8737383 to your computer and use it in GitHub Desktop.
Mix and Match: Disable Shipstation Compat
<?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