Forums
-
- Forum
- Posts
-
- Installing BuddyPress
- 23,840
- How-to & Troubleshooting
- 129,892
- Creating & Extending
- 25,913
- Requests & Feedback
- 9,553
- Third Party Plugins
- 9,834
- Showcase
- 3,316
- Ideas
- 1,404
- Miscellaneous
- 9,183
-
The groups_member_before_save hook doesn’t really give you the opportunity to exit execution gracefully if your member doesn’t validate. Is there another hook that you can use?
I suppose you could force execution to stop by adding a redirect after bp_core_add_message() but that feels slightly hackish:
bp_core_add_message( $message, 'error' );
bp_core_redirect( bp_get_groups_directory_permalink() );