Welcome To Snipplr


Everyone's Recent PHP Snippets



1 ... 63 64 65 66 67 ... 152
possibilitar a leitura de cada chave específica do google maps para cada domínio respectivo à chave
0 305 posted 10 years ago by rbulgueroni
Previously, I posted a little snippet I found on how to generate a special body class on each .php page. I, later, needed to get that body class and echo out a piece of HTML, which depended on my current page. So here is the snippet that I came up wi...
0 339 posted 10 years ago by danielwrobert
It's working now. Just having issue with it applying to all columns. Need to keep checking. (IE. have to tax's for testing, only one has the additional meta info attached, but they are both showing in the column as having the address as "active" (usi...
1 285 posted 10 years ago by thefrosty
This was more of a go at learning the basics of OOP, however I decided to document it well in case anyone had any comments. Note: It only works with single files, no directory usage.
0 276 posted 10 years ago by asdasDan
Add this in the functions.php file, in your Wordpress theme.
0 331 posted 10 years ago by ddavidd
From an awesome comment on how you can use PHP to apply the unique ID to to the body element. This will return the name of the PHP file being executed as the ID (e.g. body id="index.php"). To leave off the .php part, just remove the ".php" part.
0 443 posted 10 years ago by danielwrobert
0 331 posted 10 years ago by vagrantradio
This snippet check for custom field value (customfieldname), if there is nothing it will display default value (alternative text). This is my first WordPress Snippet :)
1 310 posted 10 years ago by raz
A class that implements an interface cannot override a constant defined in the interface. But any child class that extends from the implementing class can.
0 259 posted 10 years ago by denright
Refer here for a full overview: http://net.tutsplus.com/tutorials/php/quick-tip-email-error-logs-to-yourself-with-php/
9 463 posted 10 years ago by Nettuts
This is to check if a custom option exist from the admin panel.
1 306 posted 10 years ago by Farhan
A little function used to set cookies as arrays of values instead of single combinations key->value. Note that it saves values as a stack.
1 304 posted 10 years ago by claudiowebdesign
Original custom fields code based on Wefunction's code here: http://wefunction.com/2008/10/tutorial-creating-custom-write-panels-in-wordpress/ enhanced to add support for uploading images.
1 325 posted 10 years ago by simnor
0 338 posted 10 years ago by fadehelix
0 203 posted 10 years ago by cwicaksono
There seems to be many scan directory systems but I could not find one that works the way I needed. I added in functionality for a search filter and an ignore list. The search filter and ignore list can ignore by extension, file (case-sensitive file...
1 449 posted 10 years ago by SoN9ne
<pre><code>* Use the proper DOCTYPE. * The opening <html> tag should include language_attributes(). * The "content-type" meta element should be placed before everything else, including the title element. * Use bloginfo() to fetch the title and des...
2 367 posted 10 years ago by blueocto
2 405 posted 10 years ago by relish
0 251 posted 10 years ago by hamsterbacke82
This will remove all non-ascii characters / special characters from a string.
1 699 posted 10 years ago by daipratt
0 268 posted 10 years ago by noelj
1 ... 63 64 65 66 67 ... 152