Initialize BM with Javascript
-
Hello,
How to load a thread only by id ?
Or how to load the whole bm using javascript (Lets supose I have the html strucure) ?I tried to read the code, the only thing I found is jQuery(document).on(“bp-better-messages-init-scrollers”). Which somehow reinit the bm.
What I want to achive is trough rest api endpoint the user will get a thread_id, that will load the BM.
Tried to echo the shordcode in the rest_api, but ofc it will echo only html strucute without content, the content is updated by javascript.This works, but ofc only in php do_shortcode(‘[better_messages_single_conversation thread_id=”8″]’)
The code is a whole book, can’t seem to find by watchin in source tabs.
Thank you.
- The topic ‘Initialize BM with Javascript’ is closed to new replies.