Want to do something with WordPress and don’t know how? Just search for a snippet – someone will usually have done it already.
- ALWAYS back up your site before making any changes to the code. You could end up with something as innocuous as too many spaces or you might come up against plugin compatibility. Even if you are 100% sure of something it is always worth taking precautions.
- Leland has some good advice for theme developers who are using code snippets in their themes. / If you have two functions with the same name in your theme then it’snot going to work and you’re going to spend hours trying to figure out what the problem is. If you’re planning on using any of these snippets in themes or plugins that you’re going to create and release then you should consider renaming the functions to something individual to prevent problems later. You don’t want to end up with a whole bunch of angry emails. You’ll notice that some of the functions already have very distinctive names. You can read Andrew Nacin’s blog for more on this.