Tag Info

Hot answers tagged

2

You could simply use the get_blogs_of_user() function: echo count( get_blogs_of_user( $user_ID ) ); instead of your custom SQL query.


1

After experimenting with birgire's comment (huge thanks), I put together a relatively simple regular expression that seems to be solid: SELECT * FROM wp_usermeta WHERE meta_key REGEXP('^wp_([[:digit]]+_)?capabilities$') The prefix can be easily added / changed without breaking the expression. It also requires at least 1 number and an underscore for any ...


1

I cannot speak to all plugins loading even when disabled, but gravity forms is not designed for heavy usage and could well be contributing significantly to the problem. I used to work with a large client that used gravity forms and their admin panels ( and submitting forms ) became so slow that eventually they started timing out completely. I no longer ...


1

Yes, you can enable a theme for a single site (as opposed to enabling it for your entire Multisite network). Go to the site's Edit Site backend page and select the Themes tab. The URL should be something like example.com/wp-admin/network/site-themes.php?id=[site ID]. You'll need Super Admin privileges on the Multisite network. Enable the theme(s) you'd ...


1

You have to check if PHP mail is working in your server or debug WP's mail, there are several ways to do this, I would first test if a basic PHP mail function works. The is as simple as running this from a PHP file or the command line: mail ('your@email.com', "Test", "Test mail from wordpress"); Find out what mail service is on your sever and debug it ...


1

Once you have https for admin users you need to have https on the front end as wellat least for the logged-in users as their authentication cookies will be sent in clear text when they access the front end and 3rd parties will be able to duplicate them and use them to get into the admin area for that user. This do not require https everywhere but it is just ...



Only top voted, non community-wiki answers of a minimum length are eligible