This code hides the admin menu items for all users that don’t have the ‘manage_sites’ capability. On multisite that would mean only Super Admins can look at those menu items. This script only removes the menu items (so users can still look at the page if they know the path) but it de-clutters the admin… Read more »
Posts Tagged: WordPress
WP-cron debug test – Add a WordPress cron event to email server variables every 2 minutes
I had to debug some issues today with a couple of scheduled posts not being published on time and showing “Missed schedule” on a multi-server setup. I thought it may be something to do with WP-cron so put together the below code to add a new cron event to email me PHP server variables every 2 minutes. It… Read more »
Sharing a Memcached server between multiple WordPress sites (key problems)
If you use Memcached as an object cache for your WordPress site and you have many sites sharing a Memcached instance you may encounter problems. All down to WordPress and the Memcached object cache plugin you use creating duplicate keys. The W3 Total Cache plugin has a problem with this and so does this Memcached… Read more »
Using LESS on a WordPress site, my thoughts
To use LESS in your WordPress theme you seem to have two options: Use something like wp-less to compile your LESS files into CSS, all done server-side using PHP, with caching taken care of as not to go through that process on every page load. Or use less.js to compile the LESS into CSS in… Read more »
WordPress starter theme framework performance
Part of the reason I’m creating this site right now is to try out a few starter themes that make use of frameworks such as Twitter Bootstrap and Foundation. I’ve used LESS before on a free site I created recently and I would like to explore CSS preprocessors a little further. Both of the above frameworks I mentioned… Read more »
Recent Comments