Hello,
We recently purchased your “Recent Visitors” plugin, and turned on ‘Enable Local Notification’ in the Admin Section. However, we realized that “Receive Notification on new profile visits?” (if you look from a user’s perspective on their profile under “Settings”) is set to “No” by default.
We want this to be “Yes” by default so that local notifications can be initially shown on the main Notifications list, and if users don’t want them, they can then set it to “No” themselves.
How can we change this Settings option to be “Yes” by default?
Thank you.
Just to clarify—
We’re referring to the profile “Settings” section under ‘Email’ that says:
Receive Notification on new profile visits? No
Receive Notification on new profile visits by email? No…NOT this one: https://i.imgur.com/WGALnJP.png
Hi Kiki,
Thank you for purchasing from us.I am sorry, we haven’t been able to assist you as our offices are closed due to Diwali holidays here. Please allow us to assist you after 6th.
Thank you
BrajeshHi Kiki,
Thank you for the patience.Our team is looking at it today and we will be assisting you with it in couple of hours.,
Regards
BrajeshHello Kiki,
Please try the following code it will disable “Recent profile visits component” by Paid Membership Pro membership name.
add_filter( 'visitor_is_enabled_for_user', function ( $is_enabled, $user_id ) { if ( ! function_exists( 'pmpro_getOption' ) ) { return $is_enabled; } $level = pmpro_getMembershipLevelForUser( $user_id ); // Replace this by user level name. if ( $level && $level->name = 'gold' ) { return true; } // All other cases return false. return false; }, 10, 2 );
Regards
Ravi
The topic ‘ [Resolved] Recent Visitors’ is closed to new replies.