AP_Roles::remove_roles()
Description #
Remove an AnsPress role
Source #
File: includes/class/roles-cap.php
public static function remove_roles() { global $wp_roles; if ( class_exists( 'WP_Roles' ) && ! isset( $wp_roles ) ) { $wp_roles = new WP_Roles(); // phpcs:ignore WordPress.WP.GlobalVariablesOverride.Prohibited } $wp_roles->remove_role( 'ap_participant' ); $wp_roles->remove_role( 'ap_moderator' ); $wp_roles->remove_role( 'ap_banned' ); }
Expand full source code Collapse full source code View on GitHub: includes/class/roles-cap.php:101
Add your comment