I’m using a plugin. It has an action like this.
add_action('publish_post', 'old_action');
function old_action($pid) {
"code goes here"
}
}
I’m writing a module for this plugin. So i need to override that old action function with my new action function.
This is my new function.
function new_action($pid) {
"code goes here"
}
}
I want to replace that old_action function with my new_action function using hooks. Can anyone help me?
Thanks