Welcome To Snipplr
Everyone's Recent Snippets
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
Here are some IDs for the default links WP 3.1 adds, found in /wp-includes/admin-bar.php:
my-account / my-account-with-avatar : the first link, to your account. Note that the ID here changes depending on if you have Avatars enabled or not.
my-blo...
0
750
posted 13 years ago by crs
Useful for stripping out backslashes, hyphens and other punctuation
0
1382
posted 13 years ago by gromitski
Replace "-" with anything you want to. Useful for amending URLs.
0
1196
posted 13 years ago by gromitski
This function shows how you can format a double value to a string with a given precision.
0
867
posted 13 years ago by bits
This function will insert items into an orders alphabetically (assuming it's already alphabetical). Initially design to make a smooth single page load/save feature that sotred everything in drop down lists, you guessed it, alphabetically. Can simply...
0
896
posted 13 years ago by FatFolderDesigner
This is a really short function you can use inside The Loop to get the parent page slug (useful to add to the body classes or something)
0
3081
posted 13 years ago by tomasdev
Digs through the exim log and gives a count for every email address that's generating SMTP errors
0
645
posted 13 years ago by beaknit
at least until HTML5 unifies all this crap into one tag, this helps me remember the three concurrent versions we need to use to cover all bases.
0
714
posted 13 years ago by stiobhart
CSS box shadow syntax - just because i can never remember the order of the attributes, off the top of my head!
0
799
posted 13 years ago by stiobhart