php - Remove wordpress action inside class definition function of a theme -
i need in removing action of wordpress within public function of class. want remove old function , want define new function against it.
code looks below
function hook_link($c){ return apply_filters('hook_link', $c); } class blue_themes { public function blue_themes(){ add_action( 'hook_link', array($this, 'old') ); function old($val){ //want remove action return $val; } } }
use function remove old function , add new function .
remove_filter('remove function name', 1); add_filter('add function name', 1);
Comments
Post a Comment