Forums
-
- Forum
- Posts
-
- Installing BuddyPress
- 24,003
- How-to & Troubleshooting
- 129,526
- Creating & Extending
- 25,790
- Requests & Feedback
- 9,496
- Third Party Plugins
- 9,782
- Showcase
- 3,316
- Ideas
- 1,397
- Miscellaneous
- 9,169
-
Try something like this, Anton:
`function boone_get_current_email() {
global $current_user;
get_currentuserinfo();
if ( strpos( $current_user->user_email, ‘changeme.username@yourdomain.com’ ) !== false ) {
$redirect = ‘whatever your redirect URL is’;
wp_redirect( $redirect );
}
}
add_action( ‘plugins_loaded’, ‘boone_get_current_email’ );`
Totally off the top of my head and untested, but you get the idea. You might have to play with where you hook it (plugins_loaded is just a guess) so that the redirect works properly.
See also: WordPress.org • bbPress.org • BuddyPress.org • Matt • Blog RSS