wordpress - Filter HTML Content of Plugin -


i using marketpress plugin. want modify single_order_funct() function html content in it. want make changes that, when updated, don't lose them.

<?php  class pluginclass{    function single_order_funct() { ?>     <h1>test</h1> <?php   }    function orders_funct() {     if (isset($_get['order_id'])) {       $this->single_order_funct();       return;      }   } 

whenever single_order_funct() function called, want modify html content returns. how can remove_action() , add_action() or there other way it?

no, it's not possible. in wordpress terms, code not prepared that. should have add_action() or do_action() defined/declared somewhere remove_action() , add_action() (respectively) useful.

the best bet ask developer add hook (a filter hook in case) in single_order_funct method.


Comments

Popular posts from this blog

apache - Remove .php and add trailing slash in url using htaccess not loading css -

javascript - jQuery show full size image on click -