Skip to:
Content
Pages
Categories
Search
Top
Bottom

Message Replies Hook


  • dcapo
    Participant

    @dcapo

    I have added some hidden fields to the compose message page via ‘bp_after_messages_compose_content’ hook and am then able to insert additional information to the database from those fields with ‘messages_message_sent’, however the ‘messages_message_sent’ hook is not being called when replies to messages are being submitted. I thought this would be the case as replies and intial thread messages are both stored in wp_bp_messages_messages. Any help as to how to add additional information about reply messages after they are inserted would be appreciated!

Viewing 1 replies (of 1 total)

  • shanebp
    Moderator

    @shanebp

    Perhaps it’s a hook priority issue – try using a number less than 10.

    Or… Did you try using messages_message_after_save ?
    Found in buddypress\bp-messages\classes\class-bp-messages-message.php

Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.
Skip to toolbar