Sync::bp_ld_sync_error_join_change_message( $feedback )
Set the error message when user cam’t join the group due to the group membership of ld.
Description
Parameters
- $feedback
-
(Required)
- $group_id
-
(Required)
Return
(mixed)
Source
File: bp-integrations/learndash/buddypress/Sync.php
public function bp_ld_sync_error_join_change_message( $feedback ) {
if ( ! empty( $feedback ) && isset( $feedback['type'] ) && 'error' == $feedback['type'] ) {
$feedback['feedback'] = sprintf( '<div class="bp-feedback error"><span class="bp-icon" aria-hidden="true"></span><p>%s</p></div>', esc_html__( 'You are not allowed to access this group. Please purchase membership and try again.', 'buddyboss' ) );
}
return $feedback;
}
Changelog
| Version | Description |
|---|---|
| BuddyBoss 1.5.0 | Introduced. |
Questions?
We're always happy to help with code or other questions you might have! Search our developer docs, contact support, or connect with our sales team.