
Fix wordpress function - memberpress / approve new user
- or -
Post a project like this523
£40(approx. $53)
- Posted:
- Proposals: 7
- Remote
- #4215787
- Awarded
Versatile Full Stack Developer: Bridging Frontend Excellence with Backend Ingenuity for Seamless Web Solutions

♛ Most Trusted Team | 12+ years of expertise in PHP, WordPress, Laravel, Angular JS, Node JS
2724255233200533409652187379103974436378481721752
Description
Experience Level: Entry
Estimated project duration: 1 day or less
Fix or rewrite a wordpress function for Memberpress and New User Approve plugin.
Site I’m working on requires users to apply before they can join, so using a free membership for sign up and the Approve New Users plugin to approve their membership.
Users fill out their details and choose a membership option when they apply (but don't pay at that stage), and on approval I need to send them an email with a link to the specific membership level they have chosen.
I’m trying to figure out a function that will send an email on approval, so check the membership option chosen when applying and send email. I have the attached put together from various sources, but it's throwing an error. I need the function to be fixed, or rewritten.
Last errors from log:
[30-May-2024 22:44:04 UTC] PHP Notice: Trying to get property 'user_email' of non-object in xxxxxxx on line 182
[30-May-2024 22:44:04 UTC] PHP Warning: array_key_exists(): The first argument should be either a string or an integer in xxxxxxxxxxxx/functions.php on line 220
[30-May-2024 22:44:04 UTC] No matching value found for 'mepr_i_wish_to_apply_for':
Have checked and the field does contain values, ie:
mepr_i_wish_to_apply_for: a:1:{s:6:"annual";s:2:"on";}
thanks
Ben
Site I’m working on requires users to apply before they can join, so using a free membership for sign up and the Approve New Users plugin to approve their membership.
Users fill out their details and choose a membership option when they apply (but don't pay at that stage), and on approval I need to send them an email with a link to the specific membership level they have chosen.
I’m trying to figure out a function that will send an email on approval, so check the membership option chosen when applying and send email. I have the attached put together from various sources, but it's throwing an error. I need the function to be fixed, or rewritten.
Last errors from log:
[30-May-2024 22:44:04 UTC] PHP Notice: Trying to get property 'user_email' of non-object in xxxxxxx on line 182
[30-May-2024 22:44:04 UTC] PHP Warning: array_key_exists(): The first argument should be either a string or an integer in xxxxxxxxxxxx/functions.php on line 220
[30-May-2024 22:44:04 UTC] No matching value found for 'mepr_i_wish_to_apply_for':
Have checked and the field does contain values, ie:
mepr_i_wish_to_apply_for: a:1:{s:6:"annual";s:2:"on";}
thanks
Ben
Ben L.
100% (4)Projects Completed
10
Freelancers worked with
7
Projects awarded
45%
Last project
14 Feb 2023
United Kingdom
New Proposal
Login to your account and send a proposal now to get this project.
Log inClarification Board Ask a Question
-
There are no clarification messages.
We collect cookies to enable the proper functioning and security of our website, and to enhance your experience. By clicking on 'Accept All Cookies', you consent to the use of these cookies. You can change your 'Cookies Settings' at any time. For more information, please read ourCookie Policy
Cookie Settings
Accept All Cookies