comment_post_redirect

comment_post_redirect

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter
See hook in action

See hook in core

Displaying hooks found in version: wordpress-6.4.3

apply_filters('comment_post_redirect') is found 1 times:

  • /wp-comments-post.php line 78

    Warning: Undefined array key 81 in /home/c6974294/public_html/wp-plugin-api.com/wp-content/themes/wordpress-hooks/functions.php on line 167

    Warning: Undefined array key 82 in /home/c6974294/public_html/wp-plugin-api.com/wp-content/themes/wordpress-hooks/functions.php on line 167

    Warning: Undefined array key 83 in /home/c6974294/public_html/wp-plugin-api.com/wp-content/themes/wordpress-hooks/functions.php on line 167

     *
     * @param string     $location The 'redirect_to' URI sent via $_POST.
     * @param WP_Comment $comment  Comment object.
     */
    $location = apply_filters( 'comment_post_redirect', $location, $comment );
    
    wp_safe_redirect( $location );
    exit;
    
    
    
    

See this hook used in plugins: