Skip to content

Instantly share code, notes, and snippets.

@brichards
Last active December 20, 2015 09:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save brichards/6108890 to your computer and use it in GitHub Desktop.
Save brichards/6108890 to your computer and use it in GitHub Desktop.
Typical Filter
<?php
/**
* The location to send commenter after posting
*
* @since 1.5.0
*
* @param string $location The 'redirect_to' URI sent via $_POST
* @param object The comment object
*/
$location = apply_filters('comment_post_redirect', $location, $comment);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment