comment_edit_redirect filter-hookWP 2.1.0

Filters the URI the user is redirected to after editing a comment in the admin.

Usage

add_filter( 'comment_edit_redirect', 'wp_kama_comment_edit_redirect_filter', 10, 2 );

/**
 * Function for `comment_edit_redirect` filter-hook.
 * 
 * @param string $location   The URI the user will be redirected to.
 * @param int    $comment_id The ID of the comment being edited.
 *
 * @return string
 */
function wp_kama_comment_edit_redirect_filter( $location, $comment_id ){

	// filter...
	return $location;
}
$location(string)
The URI the user will be redirected to.
$comment_id(int)
The ID of the comment being edited.

Changelog

Since 2.1.0 Introduced.

Where the hook is called

In file: /wp-admin/comment.php
comment_edit_redirect
wp-admin/comment.php 364
$location = apply_filters( 'comment_edit_redirect', $location, $comment_id );

Where the hook is used in WordPress

Usage not found.