title: Remove Woocommerce action from external plugin
body: <p>I'm switching to a new Wordpress plugin I've written myself that will run along side an old plugin on top of the Woocommerce cart. While I'm running the two plugins I want to remove the old plugin's action that calls it's table to display in the users my account page. I will be adding logic after to work out if it's needed, but for now I just need to remove it.</p>
  
  <p>This is how the action is being called in the old plugin.</p>
  
  <pre><code>class WC_Subscriptions {
  
   public static function init() {
  
    // Display Subscriptions on a User's account page
    add_action( 'woocommerce_before_my_account', __CLASS__ . '::get_my_subscriptions_template' );      
  
   }
  
  }
  
  WC_Subscriptions::init();
  </code></pre>
  
  <p>So far in my own plugin I have called the following and none of them work.</p>
  
  <pre><code>remove_action( 'woocommerce_before_my_account', array('WC_Subscriptions', 'get_my_subscriptions_template' ) );
  // no error but still shows the table
  </code></pre>
  
  <p>and the last one</p>
  
  <pre><code>remove_action( 'woocommerce_before_my_account', array( WC_Subscriptions::init(), 'get_my_subscriptions_template' ) );   
  // Fatal error: Class 'WC_Subscriptions' not found in /var/sites/XXXXX on line 45
  </code></pre>
  
  <p>I have tried changing/adding the <code>$priority</code> from 1, 9, 10, 11 and 99 and that doesn't work either.</p>
  
  <p>It's frustrating as I'm sure it would work if the old plugin was initiated with a <code>new</code> instance so I could do this</p>
  
  <pre><code>global $my_class;
  remove_action( 'woocommerce_before_my_account', array( $my_class, 'get_my_subscriptions_template' ) );
  </code></pre>
  
  <p>Can anyone help?</p>