Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Kendall Weaver

    (@kendalltristan)

    Kristina,

    When iterating through the roles, you could arbitrarily test for certain roles and then continue the function:

    // Iterate through each role and add it as an option in the form.
        foreach($roles as $key => $value) {
            if ($value['name'] == 'Administrator') {
                continue;
            }
    
            echo '<input type="checkbox" class="comment-roles-checkbox" name="comment-role[]" value="' . $key . '" /> ' . $value['name'] . '<br />';
        }

    I’ll go ahead and add this to the (admittedly small) roadmap for the plugin. Hopefully I can push an update here in a week or two with an options page that includes this.

    Thread Starter kristina87

    (@kristina87)

    Thank you!!

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Exclude certain roles?’ is closed to new replies.