ImbaChat shortcodes for WordPress

You can use special shortcodes for the ImbaChat plugin. Some of them already automatically work in conjunction with plugins BuddyPress and WCFM Marketplace.

How to use the shortcodes in WordPress

Method 1. Via WordPress builder

While editing a page, click "create a new block" and find shorcodes there. In the field to insert, enter the name of the shortcode in [such brackets].



Method 2. In the PHP code

To use

echo do_shortcode('[ic_open_dialog id="'.$user_id.'" class="ic_bp_button" name="Message"]');

Parameters are passed after the name of the shortcode in the attributes that will be written below for each shortcode.

List of shortcodes and their parameters:

  • Shortcode 1 [ic_open_dialog] This shortcode adds a button to the page, by clicking which, a dialog with the user opens Parameters:
    • id - user identification number on your site,
    • class - the name of the class for the button (if there is a need to use your own styles and classes),
    • name - button text,

Example: [ic_open_dialog id=13 name="Write to admin" class="class_btn_msg"]

In the current version of the plugin, this shortcode is used to display a Message button opposite each member of your site. If you use a shortcode without an id or pass it to id=0, then a dialog will open with the current author of the page on which the shortcode is installed. Possible application of this shortcode: If there is a need to display one button for all, by clicking which a dialog with the administrator or those support of the site will open.

  • Shortcode 2 [ic_create_group] Parameters:
    • classi - Class name for the input field
    • classb - Class name for the button
    • buttonname - button name

This shortcode is generated on page 2 of the input field and button. The first field "Group name" - This field corresponds to the name of the group that is being created. The second field "Pipe" - this field is responsible for the Unique identifier of the group (this parameter is used in the ic_join_group shortcode). By clicking the button, a group is created, which site users can join.

An application: Create a page for administrators, put a shortcode there and create the necessary groups through the ic_join_group shortcode. Add links to the site to enter the group (see below).

  • Shortcode 3 [ic_join_group] Options:
    • classb - Class name for the button
    • buttonname - button name
    • pipe - Parameter from shortcode 2, needed to understand which group to connect the user to.

Method of application watch from shortcode 2.

  • Shortcode 4 [ic_open_chat] There are no parameters. Creates a button that opens a chat.
  • Shortcode 5 [ic_close_chat] There are no parameters. Creates a button that closes the chat
  • Shortcode 6 [ic_wise_chat] Options:
    • width - Chat width
    • height - Chat height
    • name - Id or name of the block class on the page, this parameter is needed to configure the chat in your personal account on our website. After you have installed this shortcode on the site, go to the style settings of your widget on our site and write in the name you specified in the shortcode and check the "Enable" box.


  • Sorry but this makes no sense at all. This is not user friendly at all. I want to create groups but this doesn't tell me how.
  • Hi! Here is a shortcode to create ggoup chat: [ic_create_group] Parameters: classi - Class name for the input field classb - Class name for the button buttonname - button name