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 WordPress - Custom REST Route
PHP
0
0
1294
PHP WordPress - Limit # of Words
PHP
0
0
1344
PHP Wordpress - Get Random Post
PHP
0
1
1356
PHP WordPress - Add Inline JavaScript after Enqueued footer script
PHP
0
3
2040
PHP - Force File Download
PHP
0
2
1404
PHP WordPress - Load your plugin first
PHP
0
2
1655
PHP - If / Else If / Else
PHP
0
3
1432
PHP - Object and Array Creation + Dynamic Accessors
PHP
0
3
1765
PHP - Haversine Distance between two points ( latitude, longitude )
PHP
0
2
1961
WP-CLI - Call Internal Command from PHP
PHP
0
0
1512
PHP - Get Command-Line Arguments
PHP
0
0
1285
PHP WordPress - Show all registered rewrite rules
PHP
0
0
1310
PHP - Set DateTimeZone of DateTime
PHP
0
4
1483
JavaScript Wordpress - Simple REST API w/jQuery
PHP
0
3
1327
JavaScript - Handle 404 with jQuery AJAX Request
PHP
0
3
1278
JavaScript - Don't Cache jQuery AJAX request
PHP
0
7
1478
PHP WordPress - Build Query String with http_build_query
PHP
0
14
2121
PHP WordPress - List All Roles
PHP
0
10
1435
PHP WordPress - Disable JSON Rest API
PHP
0
7
1401