I have following piece of code which I can't modify.
if ( empty($post->comment_status) ) {
do_action('comment_id_not_found', $comment_post_ID);
exit;
}
I can create function called during do_action processing (hooks in wordpress).
function my_function () {
//do something
}
add_action('comment_id_not_found', 'my_function');
Is it possible to skip the exit; command in the condition?
Thanks
do_actionis executed - Why can't you change the code?exit(), so why not force the comment_status to be non-empty?catchblock...