Welcome To Snipplr


Everyone's Recent PHP Snippets



1 ... 32 33 34 35 36 ... 147
Writes to a text file, test.txt, instead of email for the purposes of testing.
0 841 posted 13 years ago by hotdiggity
PHP 4.1
0 829 posted 13 years ago by hotdiggity
Add to bottom of your theme's functions.php file
0 772 posted 13 years ago by RainyDayMedia
Once we login and are in the backend of WordPress, there is another small logo of WordPress displayed on top. It’s small but if you wish to change it, then add below code to the same functions.php file we created in above step.
0 804 posted 13 years ago by jamiebrwr
When a client wants to access the WordPress admin, the first thing they will notice is the login page with a WordPress logo. Wouldn’t it be better if this page had the logo of your client’s company or maybe yours? There are many simpler ways to d...
0 927 posted 13 years ago by jamiebrwr
Change the small logo at the top of the dashboard: Just add to the bottom of your theme's functions.php file
0 847 posted 13 years ago by RainyDayMedia
Add to bottom of your theme's functions.php file
0 760 posted 13 years ago by RainyDayMedia
Removing the generator tag for security purposes... add to the bottom of your theme's functions.php file
0 829 posted 13 years ago by RainyDayMedia
Add to the bottom of the your theme's function.php file. Change to your site's name
0 1007 posted 13 years ago by RainyDayMedia
For those of use who use Wordpress as a CMS, this gives you the option of hiding all your dashboard widgets, for all users. <br>**Open your theme’s functions.php file located in your theme’s folder. Copy this script, paste it at the bottom of y...
0 1061 posted 13 years ago by RainyDayMedia
add this in functions.php
0 949 posted 13 years ago by IronMANro
Paste this code at the top of your .php file. You can choose this new site template when creating a new wordress site.
0 468 posted 13 years ago by rofthedeep
<?php> will random load images named (in this example) image_1.jpg up to image_5.jpg
0 1041 posted 13 years ago by DeluxiveState
With this file you can load stylesheets and minify the code while changing colors. The stylesheets are loaded using file_get_contents and you can attach them one after another if you have multiple sheets. The colors are replaces based on a variable t...
0 979 posted 13 years ago by FatFolderDesigner
You can use this in Joomla extensions where you need to get the current language locale for example to use with Facebook Connect/Like plugins etc. in the "en_US" format. With facebooj JS, all you have to do is replace the default locale with the resu...
0 1048 posted 13 years ago by burconsult
It's not immediately clear from the `context_set()` function how to trigger a context to be "active" using code. Do it like this:
0 849 posted 13 years ago by jonathanpglick
This small snippet can be used to get the children and grand children of a Wordpress page. See the comments for how it works
0 1180 posted 13 years ago by jvandemerwe
0 981 posted 13 years ago by jose_506
1 1202 posted 13 years ago by jose_506
0 797 posted 13 years ago by jose_506
Using the ID of a page, you can get the content, the featured image and the title to power widgets in your template.
0 864 posted 13 years ago by mejamiewilson
0 761 posted 13 years ago by distribuida
This is a custom class for caching results through php's session. The class can be used to cache anything, but i use it to cache mysql results so i don't have to get all the time the results by querying MySQL (wich may take a long time, especialy if...
0 1341 posted 13 years ago by TimoZachi
A couple of ideas and options...
0 704 posted 13 years ago by stefpretty
A function that resizes an image to desired width and height, but does not distort the image proportions. Works for JPEG, GIF and PNG.
0 1126 posted 13 years ago by TimoZachi
This code snippet gets all information from a YouTube video (title, description, duration, thumbnail url, thumbnail width, thumbnail height, etc..) using the video id and YouTube API.
0 2241 posted 13 years ago by TimoZachi
0 1356 posted 13 years ago by kspal
1 ... 32 33 34 35 36 ... 147