wphooks.info - comment_edit_redirect

comment_edit_redirect

(trunk - 5.0-alpha-42177)

The hook occurs in the following file:

wp-admin/comment.php:
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
	$location = ( empty( $_POST['referredby'] ) ? "edit-comments.php?p=$comment_post_id" : $_POST['referredby'] ) . '#comment-' . $comment_id;

	/**
	 * Filters the URI the user is redirected to after editing a comment in the admin.
	 *
	 * @since 2.1.0
	 *
	 * @param string $location The URI the user will be redirected to.
	 * @param int $comment_id The ID of the comment being edited.
	 */
	$location = apply_filters( 'comment_edit_redirect', $location, $comment_id );
	wp_redirect( $location );

	exit();

default:
	wp_die( __('Unknown action.') );

} // end switch