I have created a new plugin that modifies the outgoing emails. It is working great except one thing. I only want to modify the html portion of the email and NOT the text portion.
Can anyone tell me what I have to do to only modify the html section?
I have this hook in my init.. is there a better hook that will only grab the html?
$this->add_hook('message_outgoing_body', array($this,'replace'));
And I have this in my replace function hoping to ignore the text portion but, doesn't seem to make any difference..
if( $args['type']=='plain' )
return null;