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.


Parameters

$location

(string)The URI the user will be redirected to.

$comment_id

(int)The ID of the comment being edited.


Top ↑

Source

File: wp-admin/comment.php

View on Trac


Top ↑

Changelog

Changelog
VersionDescription
2.1.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.