Welcome To Snipplr


Everyone's Recent PHP Snippets



1 ... 27 28 29 30 31 ... 148
Simplify the Wordpress admin area for clients by hiding menu items. Add this snippet to your Wordpress theme's functions.php file.
0 626 posted 11 years ago by f6design
If you are creating a custom post type in Wordpress, and turn off the 'editor' capability, then TinyMCE is not loaded. This means any WYSIWYG meta box textareas will fail. Add this snippet to your theme's functions.php file to load the required TinyM...
0 489 posted 11 years ago by f6design
Add this to your Wordpress theme's functions.php file. It allows you to move the 'featured image' upload/select box from the admin sidebar to another position on the page, to give it more prominence.
0 607 posted 11 years ago by f6design
It's not possible to use the standard syntax to retrieve the current id of the Joomla module in a Joomla xml element. This code parses the url and grabs the last part of the url which i atypically the module id when editing a module in the Joomla adm...
1 511 posted 11 years ago by joomlabamboo
Snippet for getting the layout handles in Magento on each request, helpful for front-end developers.
1 585 posted 11 years ago by zoranmk
Snippet for logging down all of the layout updates loaded on each request in Magento.
1 627 posted 11 years ago by zoranmk
I've yet to work on a WordPress site where at least once post wasn't copied from Microsoft Word, producing a mess of inline tags and awful markup. This helps prevent that, just a little.
0 450 posted 11 years ago by travishines
Custom post page name
0 507 posted 11 years ago by hernanvionnet
Ordena cualquier array multidimensional en base a un campo específico
0 572 posted 11 years ago by n19ht
solving unwrapped link in auto_link() function
1 440 posted 11 years ago by yllumi
0 366 posted 11 years ago by xcsteve99
Just my simple db class i use
1 445 posted 11 years ago by cdog
1 518 posted 11 years ago by beneberle
Esta función devuelve true si el argumento está codificado en utf8
0 454 posted 11 years ago by n19ht
If not have access to edit json, setting url possible is: url: 'http://graph.facebook.com/4/?callback=getDatosUsuario'
0 539 posted 11 years ago by nicolaspar
Send an email to all registered users when a post is published, for wordpress 3.1+
0 506 posted 11 years ago by eniris
Add this to your functions.php file
0 531 posted 11 years ago by xcsteve99
Just pop this in your IMG tags
2 570 posted 11 years ago by xcsteve99
OH MY GOD - ok so this solved a few problems... use this instead of just <body> and you have all the tags you could ever want for applying your css.
0 260 posted 11 years ago by randycaruso
0 506 posted 11 years ago by arpit
If you would like to insert a cForms form into your WordPress website without using the TinyMCE or Widget function, you can do so by inserting this code in your template. Replace ‘Default’ with the name given to your form.
0 665 posted 11 years ago by albertpak98
A custom breadcrumb function for WordPress that I created for a client. You can pass 2 arguments, the first being the text you want to display in front of the breadcrumb and the second is to hide the home item in the breadcrumb It will give eac...
1 439 posted 11 years ago by krike
created by Adi Dragus
0 354 posted 11 years ago by innerstorm
0 403 posted 11 years ago by bubaphex
This will search for specific type of tag in html doc and extract type attribute value and all attributes after it in tag.
0 519 posted 11 years ago by anagaiyahoocom
0 523 posted 11 years ago by simondiercks
1 ... 27 28 29 30 31 ... 148