If any participant is Admin


Home Forums Front End PM PRO If any participant is Admin

This topic is: Resolved
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #31563
    David
    Participant

    Hi Shamim,

    I have spent quite some time trying to get this to figure this out but I am afraid I cannot manage it.

    I just need the following:

    If Admin is not a message participant {
    do this
    }

    I am sure it is a simple answer, any help would be appreciated.

    #31579
    Shamim Hasan
    Keymaster

    Admin means users with administrator role or set as admin in settings page of the plugin?
    How many admins do you have?

    #31581
    David
    Participant

    sorry, yes, user with administrator role. There is only 1. I can also do it by user ID number which is 1 if that helps.

    #31584
    Shamim Hasan
    Keymaster

    You can use like following ( use $message_id whose participants you want to check)

    $participants = fep_get_participants( $message_id );
    if( in_array( 1, $participants ) ){
    }
    
    #31586
    David
    Participant

    Thanks!!

Viewing 5 posts - 1 through 5 (of 5 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.