Forums
-
- Forum
- Posts
-
- Installing BuddyPress
- 23,840
- How-to & Troubleshooting
- 129,881
- Creating & Extending
- 25,910
- Requests & Feedback
- 9,553
- Third Party Plugins
- 9,832
- Showcase
- 3,316
- Ideas
- 1,402
- 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() );