AP_Roles::add_roles()
Description #
Add roles and cap, called on plugin activation
Source #
File: includes/class/roles-cap.php
public function add_roles() { // @codingStandardsIgnoreStart add_role( 'ap_moderator', __( 'AnsPress Moderator', 'anspress-question-answer' ), array( 'read' => true, ) ); add_role( 'ap_participant', __( 'AnsPress Participants', 'anspress-question-answer' ), array( 'read' => true ) ); add_role( 'ap_banned', __( 'AnsPress Banned', 'anspress-question-answer' ), array( 'read' => true ) ); // @codingStandardsIgnoreEnd }
Expand full source code Collapse full source code View on GitHub: includes/class/roles-cap.php:49
Add your comment