Elvis ImpressMe
Forum Replies Created
-
I ended up coding this and it worked perfectly:
$blogAdminUsers = get_users( 'role=Administrator' ); foreach ( $blogAdminUsers as $user ) { //echo '<span>' . esc_html( $user->user_email ) . ', </span>' $str .= '<span>' . esc_html( $user->user_email ) . ', </span>'; } $str = rtrim($str, ", </span>"); $str .+ '</span>'; echo '<td>'.$str.'</td>'; $str = null;
- This reply was modified 5 years, 6 months ago by bcworkz. Reason: code fixed
@joyously That would just get me the email address of the original blog admin (the creator of the subsite), but not every blog admin (i.e. each blog can have multiple admins).
Also, get_bloginfo( ‘admin_email’ ) doesn’t contain more than one email address.
What I’m going to do is more along these lines:
Get the user data with $user_info = get_userdata(1) (here 1 is the user id, but I won’t necessarily use that), check if the role is equal to “Administrator” with $user_info->roles, and if so, I’ll get the email address with $user_info->user_email. With this pseudo code, I will then loop through all the sites.Forum: Themes and Templates
In reply to: [Spacious] Where are Spacious Previous Versions Located?Thank you @rajeshpoudel.
Forum: Networking WordPress
In reply to: WP feature to page through the list of users in WP MultisiThank you, @bcworkz. I’ll take a look at this.
Forum: Themes and Templates
In reply to: [Spacious] Where are Spacious Previous Versions Located?Thank you. Can you put that link on themegrill’s site or on the www.ads-software.com Spacious page- like how it’s done for plugins? Without your answer, people would not be able to find it.
Hi Wfyann,
Has this issue been resolved? Just asking because we would like to update our WordFence plugin (still on 7.0.5 for some of the WP Multisite platforms). I’ve emailed your developer (yann) a while back to let him know we can be of assistance, but he didn’t answer back, so I’m sure he didn’t. Let me know. Thank you.
Yes, we can see what we can do help. Since the bug is on our live site, while our dev version does not have the bug, we can try our best to implement any test fixes your team comes up with while keeping our live site up.
Hi @wfyann,
Thanks for the quick reply. Looking through our wp-confing.php file, I don’t see those lines.
I do have 7.0.2 running successfully on our dev version of the site, and the dev site also does not have those lines of code, but can run the new version of WordFence just fine.
The dev site does have some plugins that the site with issues does not (and vice versa). In your experience, have you come across plugins that can cause conflicts with this new version of WordFence? My thinking is if that may be a cause, I can remove some plugins that may be interfering with WordFence.