luxman
Forum Replies Created
-
got it. thanks!
if ( bp_registration_get_moderation_status( 1 ) ) { // Do something to user 1, since they're moderated right now. }
This only works for user 1
How do I make it so that it checks the logged in user?
something like
is_user_logged_in() && !bp_registration_get_moderation_status( 'true' )
Forum: Plugins
In reply to: [Registration Options for BuddyPress] Place User Back into Pending?Where do I place the function above to make it so user with the id 20 has to be approved again?
got it
- This reply was modified 6 years ago by luxman.
Forum: Plugins
In reply to: [Registration Options for BuddyPress] Place User Back into Pending?Would be great to go into the Admin backend > users > then recheck “Approve” or something to freeze the users account until approved again. Trying to do that now.
Yes, that works perfect! Thank you
- This reply was modified 6 years ago by luxman.
Forum: Plugins
In reply to: [Manage Notification E-mails] anyone get this to work with gforms?I FINALLY figured it out…
1. Create a file disable-new-user-emails.php
2. Insert the following code<?php /* Plugin Name: Disable New User Email Notifications Description: Using GravityForms Registration Add-on and Custom Notifications? This will Disable the Default WordPress Admin and User Notifications. Author: BeHappy in 2017 */ if ( ! function_exists( 'gf_new_user_notification' ) ) { function gf_new_user_notification( $user_id, $plaintext_pass = '', $notify = '' ) { return; } } ?>
3. Save it!!!
4. Upload it to your /wp-content/plugins folder
5. Activate the plugin
6. NO MORE [SITE] New User Registration Emails! ??**Note**: We are using the GravityForms User Registration Add-on. In order for admin or users to receive a registration / welcome email, you have to create notifications for them in the form’s **Settings > Notifications**
Lastly, I’m also running a MultiSite… I have the Settings > Registration notification unticked. I’m sure this same code will work for a single WP site.
I FINALLY figured it out…
1. Create a file disable-new-user-emails.php
2. Insert the following code<?php /* Plugin Name: Disable New User Email Notifications Description: Using GravityForms Registration Add-on and Custom Notifications? This will Disable the Default WordPress Admin and User Notifications. Author: BeHappy in 2017 */ if ( ! function_exists( 'gf_new_user_notification' ) ) { function gf_new_user_notification( $user_id, $plaintext_pass = '', $notify = '' ) { return; } } ?>
3. Save it!!!
4. Upload it to your /wp-content/plugins folder
5. Activate the plugin
6. NO MORE [SITE] New User Registration Emails! ??**Note**: We are using the GravityForms User Registration Add-on. In order for admin or users to receive a registration / welcome email, you have to create notifications for them in the form’s **Settings > Notifications**
Lastly, I’m also running a MultiSite… I have the Settings > Registration notification unticked. I’m sure this same code will work for a single WP site.
Forum: Plugins
In reply to: [Manage Notification E-mails] anyone get this to work with gforms?any updates?
any updates?
Forum: Plugins
In reply to: turn off (or stop) new user registration email to adminAny updates on this?
Forum: Plugins
In reply to: [SendGrid] Reason 550 Verification failed?Horrible support. Moved to a different company.
What did you do to fix this? I don’t see this option anywhere
Forum: Plugins
In reply to: [SparkPost] Tracking breaks Password resetstill does not work…
Forum: Fixing WordPress
In reply to: oEmbed float wordpress and css styling options?I found this code:
add_filter('embed_oembed_html', 'my_embed_oembed_html', 99, 4); function my_embed_oembed_html($html, $url, $attr, $post_id) { return '<div id="video">' . $html . '</div>'; }
Which works but not sure if it messes anything else up?
Forum: Fixing WordPress
In reply to: Get site url (mulisite directories?) php code?got it:
<?php echo get_bloginfo('wpurl'); ?>