Skip to main content

better_messages_group_call_joined

REQUIREMENTS

To be able to implement this guide, you need to learn how to insert PHP snippets to your website.

You can find guide here: WP Beginner

Compatibility
This action compatible with Better Messages 2.10.2 or higher
WebSocket Version Guide
This functionality available only with WebSocket Version

This action is triggered when the user is joining to a group call.

add_action( 'better_messages_group_call_joined', 'on_join_group_call', 10, 4 );

function on_join_group_call( $thread_id, $type, $user_id, $is_started ){
// var_dump( $thread_id ); # Thread ID where group call is joined
// var_dump( $type ); # Call type: audio or video
// var_dump( $user_id ); # User ID who joined or created the call
// var_dump( $is_started ); # Boolean value, true if user is starting the group call, false if user is joining existing group call
}