Give to site admin the option to “skip confirmation email” when adding new user

Paste this in your functions.php file: function my_skip_confirmation_email() { if ( is_multisite() && current_user_can( ‘create_users’ ) ) { ?> <table class=”form-table”> <tr> <th scope=”row”><?php _e( ‘Skip Confirmation Email’ ); ?></th> <td> <input type=”checkbox” name=”noconfirmation” id=”noconfirmation” value=”1″ /> <label for=”noconfirmation”><?php _e( ‘Add the user without sending an email that requires their confirmation.’ ); ?></label> </td> </tr> … Read more

How to display the status of users (online – offline) in archive.php

It looks like you’re close on this one. Move this function: function is_user_online( $user_id ) { // get the online users list $logged_in_users = get_transient( ‘users_online’ ); // online, if (s)he is in the list and last activity was less than 15 minutes ago return isset( $logged_in_users[$user_id] ) && ( $logged_in_users[$user_id] > ( current_time( ‘timestamp’ … Read more

Custom post type support for get_users(‘orderby=post_count’);

you can try to replace the where clause of the query by hooking to pre_user_query. Something like: function user_query_count_post_type($args){ $args->query_from = str_replace(“post_type = post AND”, “post_type IN (‘post’,’cpt’) AND “, $args->query_from); } Usage ex: add_action(‘pre_user_query’,’user_query_count_post_type’); $users = get_users(‘orderby=post_count’); remove_action(‘pre_user_query’,’user_query_count_post_type’);

Is there an upper limit for users in WP?

For every scaling question you can look at wordpress.com and see how big they are. I do’t know the details but I think that with all the users of wordpress.com itself, akismet users and jetpack users, an estimate of 1M users can’t be totally wrong.. In addition so far as far as auttomatic people say … Read more

How to track user progress?

If you’re using ACF you can also attach custom fields to users. You can attach them by using the Location Rules (the ones in the ‘User’ subgroup), see Creating custom user profile pages with ACF You could add a single relational → post object field in a field group, Filter by Post Type → Lesson. … Read more

Migrating WordPress users into Disqus

Update If you’re running a big site, you may be able to take advantage of the Disqus Single Sign-On System! Original Post No but… WordPress comments can be imported into Disqus using WordPress’ WXR export format! Disqus has a doc on WXR importing. The WXR format includes the users’ email addresses, which is fantastic because … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)