Opens in a new tab
A picture of Jeff Brigman
I CODE TODAY FOR
A BETTER TOMORROW

Glossary Term

wp_transition_comment_status()

3 tags 1 category

wp_transition_comment_status() — Calls hooks for when a comment status transition occurs. Calls hooks for comment status transitions. If the new comment status is not the same as the previous comment status, then two hooks will be ran, the first is ‘transition_comment_status’ with new status, old status, and comment data. The next action called is ‘comment_$old_status_to_$new_status’. It has the comment data. The final action will run whether or not the comment statuses are the same. The action is named ‘comment_$new_status_$comment->comment_type’.

Inputs: $new_status (string): New comment status. $old_status (string): Previous comment status. $comment (WP_Comment): Comment object.

Term Connections

Explore related terms connected by shared tags, shared categories, and relationship phrases. This map loads only when it comes into view.

Loading term connections…