Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Filter listing RH fields in admin notification email excludes fields where profile is set to admin #231

Open
3 tasks done
ipokkel opened this issue Jan 10, 2022 · 0 comments

Comments

@ipokkel
Copy link
Member

ipokkel commented Jan 10, 2022

Describe the bug
Only some fields are listed under the Extra Fields heading in the admin notification email.

To obtain the fields that should be included in the email the function pmprorh_getProfileFields is called in pmprorh_pmpro_email_filter. This function excludes fields that are set to display in the user profile for admins here:

if(!empty($field->profile) && ($field->profile === "admins" || $field->profile === "admin" || $field->profile === "only_admin"))

To Reproduce
Steps to reproduce the behavior:

  1. Create an RH field with the option for 'profile' => 'admin',
  2. Check out for any level where this field appears
  3. Check the checkout notification email for admin to see the field is not listed under Extra Fields

Expected behavior
That all fields filled in during checkout are included in the Extra Fields section of the email notification for admins.

Isolating the problem (mark completed items with an [x]):

  • I have deactivated other plugins and confirmed this bug occurs when only Paid Memberships Pro plugin is active.
  • This bug happens with a default WordPress theme active, or Memberlite.
  • I can reproduce this bug consistently using the steps above.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant