comment_{$old_status}_to_{$new_status}

comment_{$old_status}_to_{$new_status}

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: action

See hook in core

Displaying hooks found in version: wordpress-6.7.2

do_action('comment_{$old_status}_to_{$new_status}') is found 1 times:

  • /wp-includes/comment.php line 1837
    1833
    1834
    1835
    1836
    1837
    1838
    1839
    1840
    1841
    1842
    1843
         * @since 2.7.0
         *
         * @param WP_Comment $comment Comment object.
         */
        do_action( "comment_{$old_status}_to_{$new_status}", $comment );
    }
    /**
     * Fires when the status of a specific comment type is in transition.
     *
     * The dynamic portions of the hook name, `$new_status`, and `$comment->comment_type`,
     * refer to the new comment status, and the type of comment, respectively.