-
Author
-
August 17, 2018 at 13:20 #206667nikbParticipant
Hi there – I’m using PMPro & Buddypress.
I see that under Theme Options I can restrict Buddypress pages to various membership levels (which by the way, is very useful!) but I’m just wondering if there’s any way of restricting members who have a status of “pending” (or even better, have a payment with a status of “Pendng”).
I’m fairly competent handling code if you could possibly point me in the right direction (ie. what functions/filters handle the restrictions) or offer any hints as to how I could approach this.
With many thanks in advance.
August 17, 2018 at 18:19 #206713LauraModeratorHello, will assign the ticket to a higher support level who can help and advise you in your query.
Thanks! ?Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionLaura Solanes - Graphic Designer and Web Designer
Please be patient as I try to answer each topic as fast as i can.
If you like the theme or the support you've received please consider leaving us a review on Themeforest!
Always happy to help you 🙂
August 17, 2018 at 19:07 #206723RaduModeratorHi,
Our theme has only basics restrictions under wp-admin -> theme options -> memberships for any advance rule for handling and restricting the user you may need a plugins or something addons from pmppro team https://www.paidmembershipspro.com/add-ons/ or for buddypress https://www.paidmembershipspro.com/add-ons/buddypress-integration/ or any other user manager plugin
Cheers
RHi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionAugust 17, 2018 at 19:19 #206726nikbParticipantHi folks
Thank you for your replies. I’ve looked into the pmpro add-ons and they don’t do quite what I want, but the fact is that the Kleo theme options already handle the check for which level a member is assigned to, all I now need is to add an additional check as to whether that member is “active” or “pending”.
If nothing else, can you please refer me to the code which handles the levels check and I’ll try to work out my own function for the rest.
With many thanks in advance.
NikkiAugust 20, 2018 at 20:56 #207001RaduModeratorHi,
No problem,
The Logic for the membership restriction may be located there : wp-content/themes/kleo/lib/plugin-pmpro/config.php the logic it’s inside this function kleo_pmpro_restrict_rules and kleo_pmpro_access_func also the rest stuff are there.
You can overwrite safe the code by copying the code blocks beginning with the below code and pasting it into functions.php in child theme.(see screenshot)
if ( ! function_exists( ‘kleo_pmpro_restrict_rules’ ) )
Cheers
RHi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution -
AuthorPosts
The forum ‘General questions’ is closed to new topics and replies.