Additional hook request
-
Is it possible to add another hook in the function ajax_save_comment() at the very end after the comment content filters have all been executed and before the JSON is sent back to the jQuery function?
The reason is it would be the most efficient way to trigger another plugin which runs in client side JS to apply its changes to the edited returned comment mark up.
See below for where I would like the new hook..
— simple-comment-editing.php around line 610
$comment_content_to_return = $this->get_comment_content( $comment_to_return ); /*** New hook here ***/ do_action('sce_save_final',$comment_content_to_return,$post_id,$comment_id); /*** End new hook ***/ //Ajax response $return[ 'comment_text' ] = $comment_content_to_return;TIA
Rich
Viewing 11 replies - 1 through 11 (of 11 total)
Viewing 11 replies - 1 through 11 (of 11 total)
The topic ‘Additional hook request’ is closed to new replies.