Replies
- Ravi on August 9, 2022 at 4:57 am in reply to: [Resolved] Problem with 'Make a WordPress site Private code' #45961
Hello Lisa,
Thank you for the acknowledgement. I am glad that I could help.
Regards
Ravi - Ravi on August 8, 2022 at 5:35 am in reply to: [Resolved] BuddyPress Auto Friendship Pro + BuddyPress Featured Members (2) #45949
Hello Tosin,
Try the following.
/** * BuddyPress Auto Friendship Pro + BuddyPress Featured Members autofollow. */ add_action( 'wp_login', function ( $user_login, $user ) { if ( ! function_exists( 'bp_follow_start_following' ) ) { return; } if ( empty( bp_get_user_last_activity( $user->ID ) ) ) { $featured_user_ids = get_users( array( 'meta_key' => '_is_featured', 'fields' => 'ID', 'number' => - 1, ) ); if ( empty( $featured_user_ids ) ) { return; } foreach ( $featured_user_ids as $featured_user_id ) { bp_follow_start_following( array( 'leader_id' => $featured_user_id, 'follower_id' => $user->ID, ) ); } } }, -5, 2 );
Regards
Ravi - Ravi on August 7, 2022 at 5:15 pm in reply to: [Resolved] Not working Restrict Email Domains with Theme Login form #45944
Hello Masuk,
I have not done anything except deactivate and activate two plugins again. Please recheck it and let me know if it is working fine or not.
Regards
Ravi - Ravi on August 7, 2022 at 4:16 pm in reply to: [Resolved] Not working Restrict Email Domains with Theme Login form #45942
Hi Masuk,
I have tested it on your site and it does not seem to be working.
Do you have a staging site where I can disable some of the plugins and check it again?Thank you
Ravi - Ravi on August 7, 2022 at 6:10 am in reply to: [Resolved] Not working Restrict Email Domains with Theme Login form #45941
Hello Masuk,
Thank you for the details. I will check and will update you by day end.
Regards
Ravi - Ravi on August 5, 2022 at 10:00 am in reply to: [Resolved] Not working Restrict Email Domains with Theme Login form #45931
Hello Masuk,
Please upgrade the plugin. We have added support for the EDD plugin. Please check.
https://buddydev.com/plugins/wordpress-restrict-email-domains/
Regards
Ravi - Ravi on August 5, 2022 at 6:38 am in reply to: [Resolved] Problem with 'Make a WordPress site Private code' #45930
Hello Lisa,
Try the following code and let me know it helps or not
/** * Make a BuddyPress section of the site Private. * * @author sbrajesh * @global string $pagenow */ function buddydev_private_site() { // do not restrict logged in users. if ( is_user_logged_in() ) { return; } // handle Special case of BuddyPress registration/Login. if ( function_exists( 'is_buddypress' ) && is_buddypress() ) { $skip = false; if ( bp_is_activation_page() || bp_is_register_page() ) { $skip = true; } elseif ( function_exists( 'bp_branded_login' ) ) { $skip = bl_is_bl_pages(); } if ( $skip ) { return; } $redirect_url = wp_login_url( site_url( '/' ) ); // get login url. wp_safe_redirect( $redirect_url ); exit( 0 ); } } add_action( 'template_redirect', 'buddydev_private_site', 0 );
Regards
Ravi Hello Hans,
Try the following code:
add_filter( 'buddypress_profile_completion_has_uploaded_avatar', function ( $has_uploaded, $user_id ) { if ( $has_uploaded || ! function_exists( 'oa_social_login_activate' ) ) { return $has_uploaded; } $user_meta_thumbnail = get_user_meta( $user_id, 'oa_social_login_user_thumbnail', true ); $user_meta_picture = get_user_meta( $user_id, 'oa_social_login_user_picture', true ); if ( $user_meta_picture || $user_meta_thumbnail ) { $has_uploaded = true; } return $has_uploaded; }, 10, 2 );
Please let me know if it works or not
Regards
RaviHello Edman,
Welcome to the BuddyDev Forums. There is one plugin for applying categories on MediaPress Galleries and the same categories will be set on media as of gallery. You can list them on the galleries directory page.
Download for given URL:
https://github.com/mediapress/mpp-gallery-categories/archive/refs/heads/master.zipPlease give it a try.
Regards
Ravi- Ravi on July 18, 2022 at 2:25 pm in reply to: [Resolved] Pay Per Post by selling access with WooCommerce #45739
Hello Tosin,
Thank you for the acknowledgement. We will welcome your feedback.
Regards
Ravi- This reply was modified 2 years, 6 months ago by Ravi.