Closed aashishmeenaets closed 2 years ago
DB entry having a wrong key name. the membership_id is missing from the key name.
One put role API not having role ID incall:
File : memberpress-discord/public/class-memberpress-discord-public.php
Method: ets_memberpress_discord_as_handler_memberpress_complete_transaction
Line: if ( $mapped_role_id && $expired_level_id == false && $cancel_level_id == false ) {
expired_level_id
cancel_level_id
variables come into this method?mepr_pre_delete_transaction
should be written inside the admin module of the plugin.$default_role = sanitize_text_field( trim( get_option( '_ets_memberpress_discord_default_role_id' ) ) );
_ets_memberpress_discord_default_role_id
it does not have an underscore.Allow none members
--> Allow non-members
$cancel_level_id
variable is not defined in the method: ets_memberpress_discord_set_member_roles