Tag: wordpress

Easy Way to Add a Class to a Menu Item in WordPress

Go to Appearance -> Menus.  Open up Screen Options in the top right.  Click on the CSS Classes checkbox under Show Advanced menu properties.  Now each menu item has a textbox where you can enter css classes.

Tagged with:

WordPress Heartbeat API

I could not find any extensive documentation on the WordPress Heartbeat API, so I am writing here to remember what I have learned through various tutorials throughout the web. The Heartbeat API is written in Javascript.  Think of it like a

Tagged with: , ,

edit_users capability on multisite

No matter how hard you try, if you add the edit_user capability to a user on multi-site and that user is not a super-admin, the user will not have the edit_user capability.  This is hard-coded into WP_User’s map_meta_cap.  There is a filter

Tagged with: ,

WordPress is Not Remembering Me

Problem All these years I’ve been checking the “Remember Me” checkbox when logging in every once in a while in hopes that WordPress will one day actually remember me.  I don’t think it ever did, but I didn’t really mind or notice

Tagged with:

Migrating Multisite to Single Site

I needed to migrate a site on a multisite installation to a single installation.  This article did the trick for the most part.   http://beacon.wharton.upenn.edu/404/2011/02/the-return-from-multisite/

Tagged with: ,

How does WordPress redirect mistyped URLs to the correct one?

Well, I’m not sure exactly because it is A LOT of code, but to make it stop, you can use the filter ‘redirect_canonical’ and return false.  like so: So say you have a post named “mission” at http://mydomain.com/mission, but for

Tagged with: ,

Google Analytics Measurement Protocol for Subscriptions

Send Analytics Data Directly From Your Server Google Analytics Measurement Protocol is available for Google’s Universal Analytics.  It was released in the first part of 2013 and is as of this writing still in public beta.  It allows developers to

Tagged with: , , , , ,

WPEngine for WordPress Hosting Worth It?

This is not so much of a review, but more of how I came to a decision on WPEngine.  At $29/ month for the Personal plan I would not have even looked at WPEngine a year ago.  Why pay that

Tagged with: , , ,

WordPress has its own magic quotes

Apparently WordPress has it’s own magic quotes.  It is not included everywhere so you need to check if the function which WordPress uses exists. More details in the stack overflow post. http://stackoverflow.com/questions/16748663/what-does-wordpress-do-if-magic-quotes-are-turned-off-at-server

Tagged with:

Easy WordPress Localization

If you want to localize a plugin or theme or even just change some wording around, or if you are starting from scratch the easiest thing to do is install the Codestyle Localization plugin. If starting from scratch, just  make

Tagged with: , ,
Top