Bind to wp_insert_comment
Optimize comment list filter
Do typesafe comparisons instead of string comparisons for each comment_id
Optimize comment list filter
convert array_pop/array_push nonsense to a foreach loop. Use an extra array to hold the child comments that also need to be filtered out.
Optimize comment list filter
Swap the nested foreach loops by moving the comment object loop to the outside. access to the comment object was happening more than needed.
Optimize comment list filter
Exit the inner most loop early if there is no need to remove child comments. This is for the case when comments are shown with the words 'Private' instead of being removed altogether.
Added some useful comments
Added some useful comments
Added some useful comments