tlovett1/Safe-Redirect-Manager — pull request #25 by jtsternberg (2012-10-25 19:04:25+00:00)
Title: Allow filtering of redirects

- lines 712-715: Adds a filter around the $redirect to allow setting up redirect conditions programmatically. Allows you to do things like only redirect if the user is not an admin.. or only redirect on Tuesdays, or if the redirect is to '/about' and the user is registered, redirect somewhere else, etc

example:
```php
add_filter( 'srm_filter_redirect_before_running', 'dont_redirect_for_admin', 10, 2 );
function dont_redirect_for_admin( $redirect, $requested_path ) {

if ( current_user_can('manage_options') && $requested_path == '/about/' )
return false;

return $redirect;
}
```