Welcome To Snipplr
Everyone's Recent PHP Snippets
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
Remove Wordpress empty paragraphs form the_content() function.
0
2091
posted 8 years ago by razvanstavila
Add a css file to style the visual editor to resemble the theme style.
1
607
posted 8 years ago by razvanstavila
Add Google Lato Font link from Google Fonts to your website. It will add to your admin area also.
0
522
posted 8 years ago by razvanstavila
simple preprocess function to alter the site name depending on the section of the site
0
584
posted 8 years ago by emijayne
FME has designed efficient Canvas Drawing Plugin for WordPress that enables users to draw canvas online on separate paint book by utilizing basic drawing tools like brush, pencil, etc. This WordPress Plugin will create two additional pages on your we...
0
480
posted 8 years ago by alastarmason1
Sometimes you may need to change image properties 'on-the-fly'. The best example is when you want to display blog post short description, retrieve the first image and try to turn it into the thumbnail: change some properties and add a special class n...
0
573
posted 8 years ago by apphp-snippets
This simple code demonstrates how to change automatically site language, according to the visitor's country. If you implement this script in your site it will open the page in the language of your visitor.
0
765
posted 8 years ago by apphp-snippets
use anonymous function that returns parameter passed to it to evaluate functions, constants, and expressions in HEREDOC
0
667
posted 8 years ago by Queue
The following technical tip shows how php developers can protect their word documents in cloud using Aspose for Cloud SDK in php.
0
798
posted 8 years ago by johansonkatherine
Changes link destination of 'Continue Shopping' button on cart page
0
507
posted 8 years ago by daprela
This snippets converts a file called 'test.mp3' in the same folder, to a file called 'test.ogg' and saves it in the same folder as well
0
1168
posted 8 years ago by dragoviandesign
Code is meant to show the real ip address, in case if user is using a proxy. Most of the time $_SERVER["REMOTE_ADDR"] do not work correctly due to the proxy setting of user. It's a nice solution.
0
564
posted 8 years ago by KhanOf21Century
I created this code for practice, and I looking for better and clear solution for the last instance where I can write or delete the data, but after I want to get back the content as array or the key as string. I want to use this write-read back with...
0
604
posted 8 years ago by gitarfogas
The following code sample shows how developers can replace multiple texts in a single API call in a PDF file using Aspose.Pdf for Cloud API in their applications. Developers can use Aspose REST API with any language: .NET, Java, PHP, Ruby, Rails, Pyt...
0
1017
posted 8 years ago by johansonkatherine
This snippet shows you how to get previous and next post in category URL.
0
595
posted 8 years ago by fedek6
Simple loop for adding header and footer avery n times in loop. Useful for printing tables.
0
549
posted 8 years ago by fedek6
Additional option for Wordpress post (year in this case). You can get it's content in template file by:
`<?php>ID, 'year', true ); ?>`
1
419
posted 8 years ago by fedek6
Get a set of effective product management actions, like assigning categories and updating prices in bulk, etc. Stop spending a lot of time on product management.
0
485
posted 8 years ago by Amasty
Improved Layered Navigation by Amasty is a premium 5-year-old Magento extension, to which you can entrust your navigation. It includes 7 mods:
Seo layered navigation
Shop by brands
Ajax Layered Navigation
Layered navigation filt...
0
547
posted 8 years ago by Amasty
Amasty developed AJAX Scroll extension to make catalog navigation much faster and easier.
0
606
posted 8 years ago by Amasty
Aspose.PDF for Cloud API has released PHP SDK which allows PHP developers to convert PDF files uploaded to a remote server to other formats. You can pass URL and format parameters to specify the PDF’s URL and output format and use the PUT method of...
0
1230
posted 8 years ago by johansonkatherine
This is template for adding custom settings in Wordpress (using settings API).
1
495
posted 8 years ago by fedek6