Control if user can make audio/video call with hooks

add_filter('bp_better_messages_can_audio_call', 'disable_calls', 10, 3); add_filter('bp_better_messages_can_video_call', 'disable_calls', 10, 3); function disable_calls( $can_call, $user_id, $thread_id ){     if( ! $can_call ) return $can_call;          $user = get_userdata($user_id); $allowed_roles = (array)['administrator', 'other_role'];     $user_roles = (array) $user->roles; $is_allowed…

Read more

WC Vendors

Integration with WC Vendors plugin allows to connect buyers with vendors using private messages system. https://youtu.be/Z3h1UQ03wPE   Messages locations should be configured in plugin settings to be shown at WooCommerce account page or any other page: You can download addon…

Read more

Refund Policy

We stand behind our plugin’s quality and your satisfaction with it is important to us. If you experience problems with the plugin, we will be happy to provide a full refund within 7 days of the original upgrade date. Refunds…

Read more

Control if user can start new thread with hooks

With this filter you can control who can start new thread dynamically and you can also left custom message. add_action( 'bp_better_messages_before_new_thread', 'restrict_new_thread_function', 10, 2 ); function restrict_new_thread_function( &$args, &$errors ){ // User who creating thread $user_id = get_current_user_id(); /** *…

Read more

Making custom messages notification counter

Sometimes you need to create custom unread messages counter at your website. This is example of jQuery code snippet to make counter display messages count dynamically: <script type="text/javascript"> jQuery(document).on('bp-better-messages-update-unread', function( event ) { var unread = parseInt(event.originalEvent.detail.unread); if( isNaN (…

Read more

CSS Hero

CSS Hero is the definitive WordPress plugin to easily customize the look of your site, with an easy and intuitive point and click interface. It makes absolutely easy to customize any styling at your website with simple UX interface with…

Read more
0