title: Override a plugin class
body: <p>I'm trying to override a plugin class with my own. </p>
  
  <p>The plugin class is </p>
  
  <pre><code>  function yith_woocompare_constructor() {
             // stuff here
  
   }
  add_action( 'plugins_loaded', 'yith_woocompare_constructor' );
  </code></pre>
  
  <p>So in my functions.php I tried to do like that</p>
  
  <pre><code>     remove_action( 'plugins_loaded', 'yith_woocompare_constructor', 0 );   
  // now add your own filter
  add_action( 'plugins_loaded', 'new_yith_woocompare_constructor', 0 );
  
     function new_yith_woocompare_constructor()
      { 
        // my stuff here 
       }
  </code></pre>
  
  <p>But It doesn't seem to be working, what Am I doing wrong ? </p>