Welcome To Snipplr
Everyone's Recent PHP Snippets
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
Code snippet that allows the user to be automatically logged in on account creation, this works with s2Member since they allow the user to create their own password.
1
735
posted 14 years ago by oriontimbers
Removes all but the text widget, look them up: /wp-includes/default-widgets.php.
0
819
posted 14 years ago by vagrantradio
Dump it in your functions file and stare at the amazing blank page when you log in!
0
779
posted 14 years ago by vagrantradio
The code is not particularly pretty but it does the job.
If you call this file css.php you can call it like this:
css.php?files=reset,style,iefix&minify=yes
1
948
posted 14 years ago by Sverri
In a Project i had to save serialized arrays in a MYSQL Database, when i used that i got a Error Message for no reason (Error at offset XX of XX bytes in...). I wrote this little functions to fix that issue. (I dont recommend to save serialized Arra...
0
976
posted 14 years ago by FreaKzero
Customises the \"who\'s online\" block to show what role type the user has + the links now point to private message instead of profiles.
1
898
posted 14 years ago by daipratt
Used this on the vox site to find a custom post type and then assign a variable to get different classes for the output.
0
1236
posted 14 years ago by dallasbpeters
This snippet can be called in every controller, all you need to do is to specify the form name, the model name and the data.
1
703
posted 14 years ago by stolkchris
If you need to add some content to your pages without having that content in your database you can use Wikipedia API. You can, for example, need to add automatically a simple description to a city name, or to a band name. Or you could need to add the...
1
925
posted 14 years ago by ginoplusio
Loads WordPress header for external functions like get_option();
0
846
posted 14 years ago by vagrantradio