WordPress Quick Tips

Archive for March 2011

Simple “Catch URI” function

Posted by: Vincent on: March 29, 2011

This function is vaguely inspired by the function bp_core_set_uri_globals from BuddyPress. I use it often for more advanced plugins and themes. With it I can check which URL is being viewed and perform actions depending on the url. This functions gives me an array with the pieces of the URL in an array. If I’m [...]

Tags: , ,

Fix sort/order with post_title for international characters

Posted by: Vincent on: March 24, 2011

If you want to list your posts and order them by title, that is as simple as: But if you are using international characters and/or another alphabet the default database settings may mess things up for you. In Sweden for example, the last the letters in the alphabet are Å, Ä, Ö. So accordingly, posts [...]

Disable password changed/reset e-mail notification

Posted by: Vincent on: March 23, 2011

One of the bigger projects I am working on currently has 30k+ users. Having that many users means that many also will reset their password, and you will receive an e-mail every time. So how do you disable it? The function sending this e-mail is called wp_password_change_notification and is declared in pluggable.php. The great thing [...]


About

WordPress Quick Tips is a blog supplying great tips about WordPress.

We hope to create a great knowledge resource for WordPress developers as well as serving a reminder for all the forgetful ones.

The blog is created and run by Vincent of Oakwood Creative

Enter your email address to subscribe to this blog and receive notifications of new posts by email.

Join 86 other followers

Follow

Get every new post delivered to your Inbox.

Join 86 other followers