I am trying to use hooks if a task is created.
For example, I want to debug and want to have all task details printed to the browser console if a task is created.
How can I do that using add_action? and how should I write it?
Currently I use the following code which is not working.
add_action( 'cpm_task_new', 'code_for_created_task' );
function code_for_created_task($data){
/*A task is created*/
}
I am trying to use hooks if a task is created. For example, I want to debug and want to have all task details printed to the browser console if a task is created. How can I do that using add_action? and how should I write it?
Currently I use the following code which is not working.