Skip to:
Content
Pages
Categories
Search
Top
Bottom

Reply To: groups_member_before_save messages not showwing up

@henrywright

Moderator

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() );
Skip to toolbar