how to "skip" php "exit" command? -
i have following piece of code 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 } add_action('comment_id_not_found', 'my_function'); is possible skip exit; command in condition?
thanks
exit statement, there no way around , no way modify it. way avoid make sure code doesn't pass it. (eg. if(false) exit; won't exit in this: do_something(); exit; do_something_else(); function do_something_else() not called.)
Comments
Post a Comment