wpseek.com
A WordPress-centric search engine for devs and theme authors



comment_post_redirect › WordPress Filter Hooks

Since2.0.5
Deprecatedn/a
apply_filters( 'comment_post_redirect', $location, $comment )
Parameters: (2)
  • (string) $location The 'redirect_to' URI sent via $_POST.
    Required: Yes
  • (WP_Comment) $comment Comment object.
    Required: Yes
Defined at:
Codex:

Filters the location URI to send the commenter after posting.





Source

$location = apply_filters( 'comment_post_redirect', $location, $comment );