Welcome To Snipplr
Everyone's Recent PHP Snippets Tagged wordpress
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
This is a great place to add your own custom Help text for a client. You can even customize it for different Admin panels. For example, you can add a different Help text for the Add New Post panel and another one for the Comments panel.
Here’s h...
0
841
posted 13 years ago by blueocto
It’s possible to disable it conditionally for each WordPress user by going to Users > Your Profile. However, if you want to remove it completely, you can add the following filter:
0
812
posted 13 years ago by blueocto
I pinched the get_avatar() function from the wp/wp-includes/pluggable.php file and commented out the setting of the avatar as an <img> tag and returned the actual image url instead.
0
700
posted 13 years ago by camdagr8
3rd argument of 'add_action' function is priority, by default set to 10. This is a much simpler way of reorder posts exactly as you want them to appear.
1
603
posted 13 years ago by mrgurner
PHP
Replace the default WordPress “W†logo in the administrative header with a custom alternative
Place in functions.php
1
1072
posted 13 years ago by alp
Place snippet in functions.php, edit maximum image size in Admin -> Settings -> Media -> Image Sizes ("Large Size") (Wordpress 3.1)
0
975
posted 13 years ago by alp
Place snippet in functions.php. Works with the Shylock Adsense plugin (http://planetozh.com/blog/my-projects/wordpress-plugin-who-sees-ads-control-adsense-display/)
0
936
posted 13 years ago by alp
This adds the class "not-home" to your body_class in Wordpress. Handy if you want to reset CSS from the index page.
1
671
posted 13 years ago by ethicka