Playgrounds
Snippets
Developers
Compiler
All
ActionScript
Ajax
AngularJS
Apache
AppleScript
ASP.NET
Bash
C
C#
C++
Coffee
CoffeeScript
ColdFusion
Command
CSS
Delphi
Django
ES6
GLSL
Grunt
Gulp
HAML
Haskell
HTML
iOS
Jade
Java
JavaScript
jQuery
JSX
Less
LUA
MDX
MySQL
Objective
Other
Pascal
Perl
PHP
Plain text
PowerShell
Processing
Progress
Prolog
Pseudocode
Python
Rails
RegExr
Ruby
SASS
Scala
Scheme
SCSS
SmallBASIC
Smarty
SQL
Stylus
SVG
Swift
TypeScript
VHDL
X++
XHTML
XML
Xojo
XSLT
New snippet
New playground
Sign up
Login
Upload
Playgrounds
Snippets
Developers
Sign up
Login
Codepad is a place for developers to share code snippets (PHP, Java, Bash, C, C++, Python and more). Create your HTML, CSS and JS Demos.
Sign up
Learn more
PHP snippets by Jesse Graupmann
PHP Arrays
PHP
0
21
15213
PHP CORS Header
PHP
0
0
1325
PHP / WordPress post to Slack
PHP
0
7
4348
PHP WordPress - JSON Endpoint from add_rewrite_rule
PHP
2
1
2993
PHP WordPress - Random Image Endpoint
PHP
0
1
1723
PHP Get Preferred Languages
PHP
0
2
1434
WordPress Automatically Log In User
PHP
0
2
1445
WordPress filter Author in RSS Feeds to be static
PHP
0
2
1458
WordPress __return_{x} handlers for filters
PHP
0
1
1360
PHP WordPress - Filter Max Image Width for SRCSET
PHP
0
0
1796
WordPress Export WXR and Capture the Results
PHP
0
0
1685
WordPress Merged Array with Default Args
PHP
0
0
1789
WordPress Polylang WP_Query by Language
PHP
0
1
17547
WordPress Polylang Get Language
PHP
0
1
5776
PHP WordPress - Deprecated Function
PHP
0
1
1788
PHP WordPress - Create Lifetime Nonce
PHP
0
4
1984
PHP WordPress - Make SoundCloud oEmbed Responsive
PHP
0
2
2155
PHP WordPress - Create Brightcove Video Embed
PHP
0
3
2533
PHP WordPress - Remove the Login Shake Effect
PHP
0
1
1361
PHP WordPress - Add Custom Field to Body Class
PHP
0
1
1517