wphooks.info - comment_edit_redirect

comment_edit_redirect

(trunk - 5.0-alpha-42716)

The hook occurs in the following file:

wp-admin/comment.php:
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
		$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