comment_edit_redirect

comment_edit_redirect

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter

See hook in core

Displaying hooks found in version: wordpress-6.7

apply_filters('comment_edit_redirect') is found 1 times:

  • /wp-admin/comment.php line 377
    		 *
    		 * @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.' ) );