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

Popular posts from this blog

javascript - three.js lot of meshes optimization -

smartface.io - Proper way to change color scheme for whole application -

Email notification in google apps script -