AP_Roles::add_roles()

Description #

Add roles and cap, called on plugin activation

Changelog #

VersionDescription
2.0.1Introduced.

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
	}

Leave a Reply

Your email address will not be published.

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Add your comment