• Resolved wprun

    (@wordpressrun)


    Is it possible to restrict how many new users a member can message per month. As an admin I would like to make this a general rule that all members can each message a maximum of 10 new users per month.

    To clarify, new users meaning users that a user has never messaged before).

    thanks

    • This topic was modified 1 year, 1 month ago by wprun.
    • This topic was modified 1 year, 1 month ago by wprun.
Viewing 1 replies (of 1 total)
  • Ian Sackofwits

    (@plantprogrammer)

    Hey, wordpressrun, I’m another FEPM user.

    I think you could achieve this programatically.

    It looks like there’s a filter you can play around with via PHP:
    apply_filters( 'fep_current_user_can', $can, $cap, $id );

    You could hook onto it and put a conditional for ‘send_new_message’.

    You would need to store this in the database using something like a transient: https://developer.www.ads-software.com/reference/functions/set_transient/

Viewing 1 replies (of 1 total)
  • The topic ‘Restrict number of messages to new users’ is closed to new replies.