• Resolved webfantastic

    (@webfantastic)


    Hi!

    Is there some kind of hook so that you can send a chat message to the user on behalf of the administrator? We want to set up automatic notifications about sending goods and sending tracks and payment links to the chat, for this we need a hook to write a function.

Viewing 1 replies (of 1 total)
  • Plugin Author N-Media

    (@nmedia)

    Hi,

    thanks for reaching out, sure here is action hook when message sent by any user like vendor or customer:

    do_action('wooconvo_after_message_added', $user, $context, $message, $attachments, $thread, self::$orderid);

    $user: wp user object

    $context: my-account or wp-admin (means customer or admin)

    $message: the actual message text

    $attachments: an array of files being attached

    $thread: all whole thread/chat in json

    self::$orderid: wc order object

Viewing 1 replies (of 1 total)
  • The topic ‘Hook or message sending function’ is closed to new replies.