comment_edit_redirect WordPress Filter Hook
The comment_edit_redirect hook is called when a comment is edited. It allows you to redirect the user to a different page after the comment is edited.
apply_filters( 'comment_edit_redirect', string $location , int $comment_id ) #
Filters the URI the user is redirected to after editing a comment in the admin.
Contents
Parameters
- $location
(string)The URI the user will be redirected to.
- $comment_id
(int)The ID of the comment being edited.
Source
File: wp-admin/comment.php
Changelog
Version | Description |
---|---|
2.1.0 | Introduced. |