title: Extend existing class method
body: <p>Can I somehow extend existing class method from plugin? Or can I monitor output every time method get called?</p>
  
  <p>There is</p>
  
  <pre><code>class greatPlugin{
  ...
    public function someProcess($vars){
  
      /* The magic */
      return $stringFromProcess;
    }
  ...
  }
  </code></pre>
  
  <p><code>greatPlugin</code> is called by hook inside WordPress before theme is loaded, but I need access (preferably) array of outputs generated by <code>someProcess</code> method. For example</p>
  
  <p><code>$greatSubOutput = array('string1', 'string2');</code></p>
  
  <p>or just <code>$greatSubOutput = null;</code> if method was not called.</p>
  
  <p>The <code>greatPlugin</code> class is too complex to rebuild it's great work done by original dev. If I could add just some log2array feature to that function...</p>