Skip to content

Instantly share code, notes, and snippets.

@bahiirwa
Forked from zulfgani/woocommerce.php
Created November 27, 2019 08:25
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 bahiirwa/030a8f7f4dc099d5aa81f57337473ecd to your computer and use it in GitHub Desktop.
Save bahiirwa/030a8f7f4dc099d5aa81f57337473ecd to your computer and use it in GitHub Desktop.
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