WP Inline Comment Errors plug-in
Other functions
wpice_get_redirect_url
Description
This filter allows you to alter the redirect url that is generated by the plug-in and passes the url back to the plug-in for final processing before WordPress executes the redirect. Add this filter to your functions.php file or your own copy of the comments-error-functions.php file that you include into the functions.php file.
Usage
// get the redirect url, parse and return url
add_filter('wpice_get_redirect_url','add_anchor_frament');
function add_anchor_frament($url){
// your code to parse and modify the url
return $url;
}
Parameters
$url – (string) url that the plug-in uses to redirect the user back to the page with the comment form.
Returns
$url – (string)