has_cap( self::MANAGE ) ) { $role->add_cap( self::MANAGE ); } } update_option( self::VERSION_OPTION, self::VERSION ); } /** Remove the capability from every role and clear the version marker. */ public static function revoke(): void { foreach ( array_keys( wp_roles()->roles ) as $role_name ) { $role = get_role( $role_name ); if ( $role ) { $role->remove_cap( self::MANAGE ); } } delete_option( self::VERSION_OPTION ); } }