Skip to main content

get_user_messages_url

This function is to generate url which points to user personal inbox with specific conversation opened

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 function compatible with Better Messages 2.0.63 or higher

Specific Conversation Screen

<?php
// User ID of member for whow you are generating link
$user_id = 3;

// Thread ID to open
$thread_id = 111;

$url = Better_Messages()->functions->get_user_messages_url( $user_id, $thread_id );

General Messages Page (User inbox)

<?php
// User ID of member for whow you are generating link
$user_id = 3;

$url = Better_Messages()->functions->get_user_messages_url( $user_id );