Welcome To Snipplr
Everyone's Recent PHP Snippets
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
Providing the client some administrative branding can be quick and easy. Here’s how to replace the default WordPress “W†logo in the administrative header with a custom alternative.
First, create an image that fits the allocated space. As of...
0
497
posted 13 years ago by jamiebrwr
If you take a look at the top right of the WordPress Admin panels you’ll see a button that says "Help." When you click it, Help text slides down.
0
608
posted 13 years ago by jamiebrwr
Clients often expect full administrative access (and rightly so), including access to settings pages. Let’s look at how we can hook admin “notices†(those warning boxes generated by some plug-ins) to send some warnings to administrative users w...
0
469
posted 13 years ago by jamiebrwr
If your site also has registered users that aren't authors, you might have to modify this to cross-reference the usermeta table. Otherwise, this should work pretty well.
0
424
posted 13 years ago by yaysunshine
This is an easy way to Instantiate and check layouts within a ZendFramework
0
494
posted 13 years ago by Blerx
publish to everywhere except VirtueMart checkout pages (I think!)
0
480
posted 13 years ago by morktron
This is a much cleaner way to do this than the number of examples on the web. Every example I saw seemed to account for orientation - horizontal vs. vertical vs. square when looking at the input. This ignores horizontal and vertical by mapping the...
0
577
posted 13 years ago by dblack
Copy /modules/mod_menu/tmpl/default.php to /templates/MYTEMPLATE/html/mod_menu/default.php
0
922
posted 13 years ago by nico65
As of WordPress 3.1.2, Editors do not have access to the menu editor in WordPress. The following code gives that capability to Editors. Add this code to your functions.php file.
0
476
posted 13 years ago by hopeworks