Skip to:
Content
Pages
Categories
Search
Top
Bottom

Restrict private messages

  • @zorro1965

    Participant

    I working on a Buddypress membership site http://LifeCoachPDC.com that will have both free and paid members. I want to be able to restrict free members from sending private messages.

    I am using a very good membership product that I spent a ton of time to find after testing many. But the it does not allow me to restrict private member to member messages. Does anyone have a an easy idea how to solve this?

    Also, any recommendations on best practice for BP for Instant Messages?

    Thanks,

    Zorro…

Viewing 5 replies - 1 through 5 (of 5 total)
  • @henrywright

    Moderator

    Hi @zorro1965

    There’s a hook available in BuddyPress called messages_message_before_save which can be used to do things before a message is sent. So, you could write a function which checks to see if a member has authorisation to send a message and bail if not. You’d simply hook your function to messages_message_before_save

    See here for more info on how to utilise hooks.

    @zorro1965

    Participant

    Thanks Henry

    @zorro1965

    Participant

    @henrywright

    Do you think a user role manager like this one may accomplish this?

    https://wpfront.com/

    @shanebp

    Moderator

    You can’t do it via roles.
    You need to use the hook henry mentioned and write a function to see if the sender is ‘free’.

    @zorro1965

    Participant

    Thanks @shanebp

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Restrict private messages’ is closed to new replies.
Skip to toolbar