You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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*/
}
The text was updated successfully, but these errors were encountered:
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.
The text was updated successfully, but these errors were encountered: