-
-
Save bahiirwa/030a8f7f4dc099d5aa81f57337473ecd to your computer and use it in GitHub Desktop.
WooCommerce Addons compatibility for ClassicPress
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: Woo Addons Compatibility | |
* Plugin URI: https://github.com/zulfgani/woocommerce | |
* Description: A compatibility plugin for some WooCommerce addons to work with ClassicCommerce. | |
* Version: 10.0.1111 | |
* Author: I have no idea | |
* Author URI: https://ihavenoideapleasedontquoteme.com | |
* | |
* @package Woo Addons Compatibility | |
*/ | |
defined( 'ABSPATH' ) || exit; | |
define( 'WOOADDONSCOMPAT_VERSION', '10.0.1111' ); // DO NOT change the version in the plugin header or the Earth will fall on you :P | |
define( 'WOOADDONSCOMPAT__FILE__', __FILE__ ); | |
define( 'WOOADDONSCOMPAT_PATH', plugin_dir_path( WOOADDONSCOMPAT__FILE__ ) ); | |
if( !defined( 'WOOADDONSCOMPAT_PLUGIN_BASE' ) ) { | |
define( 'WOOADDONSCOMPAT_PLUGIN_BASE', plugin_basename( WOOADDONSCOMPAT__FILE__ ) ); | |
} | |
function wooaddonscompat_hide_view_details( $plugin_meta, $plugin_file, $plugin_data, $status ) { | |
if( WOOADDONSCOMPAT_PLUGIN_BASE == $plugin_file ) { | |
unset( $plugin_meta[2] ); | |
} | |
return $plugin_meta; | |
} | |
add_filter( 'plugin_row_meta', 'wooaddonscompat_hide_view_details', 10, 4 ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment