Filter listing RH fields in admin notification email excludes fields where profile is set to admin
Opened this issue · 0 comments
ipokkel commented
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:
pmpro-register-helper/pmpro-register-helper.php
Line 1066 in a685806
To Reproduce
Steps to reproduce the behavior:
- Create an RH field with the option for
'profile' => 'admin',
- Check out for any level where this field appears
- 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.