• Resolved li9ssb

    (@local9ssb)


    Your plugin needs to get all the existing rules. In my case I have others, ex. Provider that is not recognized by the plugin.

    provider in /var/www/vhosts/domain/httpdocs/wp-content/plugins/white-label-cms/wlcms-plugin.php on line 129

    $roles = array( ‘administrator’ => 25 , ‘editor’ => 20, ‘author’ => 15, ‘contributor’ => 10, ‘subscriber’ => 5 );

    $needsToBe = $roles[$needsToBe];

Viewing 1 replies (of 1 total)
  • Plugin Author Video User Manuals

    (@videousermanuals)

    Hi,

    Thanks for this. In order to achieve what you are describing, we would need to completely rewrite this function, as I am sure you are aware, the function takes the role and shows the message to anyone equal and greater than the role specified.

    So we would need a way of figuring out if “provider” was greater than an author for example.

    We make look at this in the future, but I can’t give you a date.

    Thanks for the suggestion.

Viewing 1 replies (of 1 total)
  • The topic ‘get all the existing rules.’ is closed to new replies.