Problems with sending to users of a role


Home Forums Front End PM PRO Problems with sending to users of a role

This topic is: Resolved

Tagged: 

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #43640
    thorsten.tobi
    Participant

    Hello, unfortunately I have not been able to send a PM to a user of a role for some time.
    It works with the standard theme, but Agama Pro causes problems.

    Can you help me?

    Regards
    Thorsten

    #43644
    Shamim Hasan
    Keymaster

    1. Is it creates problem with all roles or only certain role?
    2. In which role you are logged in?
    3. To which role you tried to send a message?

    #43652
    thorsten.tobi
    Participant

    i there,

    I’ll watch this again tonight.

    It seems that usage per role has “been lost”. Here in this forum I got a tip on how members of other roles (not admin) can write announcements.

    Regards
    Thorsten

    #43657
    thorsten.tobi
    Participant

    OK,… sorry,…
    The following code had disappeared from functions.php after an update.

    add_filter( ‘fep_current_user_can’, function( $can, $cap, $id ){
    if ( ‘add_announcement’ !== $cap ) {
    return $can;
    }
    if ( array_intersect( wp_get_current_user()->roles, [ ‘administrator’, ‘vorstand’, ‘moderator’ ] ) ) {
    return true;
    }
    return false;
    }, 10, 3);

Viewing 4 posts - 1 through 4 (of 4 total)

You need to purchase ‘Front End PM PRO’ to create topic in this support forum.

If you already purchased ‘Front End PM PRO’ please LOGIN.