Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
WooCommerce Addons compatibility for ClassicPress
<?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