Welcome To Snipplr


Everyone's Recent PHP Snippets Tagged class



« Prev 1 2 3
Add page name slug to Wordpress body class array.
0 398 posted 7 years ago by razvanstavila
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 414 posted 7 years ago by gitarfogas
Für functions.php
1 398 posted 8 years ago by gabbo
0 381 posted 8 years ago by larscmagnusson
how to disable mx ping with emailChecker class
0 370 posted 8 years ago by jspicher
This is a Class that allows you create a letter with correct headers and send it to multi-emails.
0 401 posted 9 years ago by Zayac
This is a static session wrapper that handles single variables and arrays. It allows setting, resetting, and deleting session variables (without destroying the session). It regenerates the session id every time a session is started to prevent sessi...
0 392 posted 9 years ago by halk
https://gist.github.com/4098493 (examples of use below the class code) This class allows you to load a file of snippets that are really mini-templates copy them from your repository fill the token slots in them the with your data and render them as...
0 423 posted 9 years ago by halk
A function to upload an image to the media library and set it as featured image of a post. It requires 2 params. The name of the upload field and of course the post ID. This function is part of the WPelements library class available on Github. Fee...
0 486 posted 9 years ago by krike
A simple class to cache files (or other results) with PHP.
1 474 posted 9 years ago by peckham
Class that convert arrays to csv format, downloads CSV files and saves to disk on server.
0 447 posted 9 years ago by TimoZachi
Gets the constants from a class using reflection.
0 459 posted 9 years ago by ryantxr
At line 220 you should see the the start if an if block. This is the section that needs to be edited. I added the foreach block to itterate over the data array and create links in the table cells.
0 379 posted 9 years ago by jdhall75
Abstract class from which other classes can be derived to handle database access and data retrieval. Constants for database connection (DB_DSN, DB_USERNAME, etc.) must be set in another php file (eg. config.php)
1 374 posted 9 years ago by osccar
use an object as an array
0 415 posted 9 years ago by prwhitehead
A class i started to implement, which ended up in a working concept However I'm not sure if it's a legal way of programming since I unnessesery changes the structure of php without some real value except nicer structure For now it remain a conce...
0 385 posted 9 years ago by Knarf
Very simple to use Web Poll Class, simply create a new instance, set the question and set the answers. You still have to set up your database yourself
1 363 posted 9 years ago by RobertHegeraad
Simple class to retrieve an ID using a URL of the Youtube
0 534 posted 9 years ago by leandroperes
This is a sample class being used for demo purposes
0 305 posted 10 years ago by tomcottrill
Just my simple db class i use
1 329 posted 10 years ago by cdog
1 452 posted 10 years ago by jose_506
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 491 posted 10 years ago by TimoZachi
No modifications or testing carried out yet.
0 456 posted 10 years ago by Huskie
Could possibly be simplified to maximise efficiency. It relies on a separare WP Sleek framework function sleek_get_theme_menu_name. This could ideally be improved to allow the theme location to passed as a parameter somehow.
0 484 posted 10 years ago by Huskie
A Class to Logging false logins and more...
0 325 posted 10 years ago by Darksider3
No Comment^^
0 350 posted 10 years ago by Darksider3
0 383 posted 10 years ago by willem
0 333 posted 10 years ago by nathanbweb
« Prev 1 2 3