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 Erik Schultz
WP Check if specific user is logged in
PHP
0
7
1520
Magento 1.9 get layout handles
PHP
0
9
1199
PHP Column Classes in Switch Case
PHP
0
8
1160
WP Add vCard File extension to uploads
PHP
0
8
1129
WP Link to google maps with ACF Google Map
PHP
0
1
1362
WP Pull correct Post ID for Archive / Categories
PHP
0
1
981
WP move comments textarea under other fields
PHP
0
1
1033
Magento 2 embed Webforms in phtml
PHP
0
0
1332
Magento finset()
PHP
0
0
1727
Magento Get Product Quantity
PHP
0
0
1175
Magento 1 Set Order Status
PHP
0
0
1176
Magento 1 Customer Data
PHP
0
0
903
WP get attachment ID from image url
PHP
0
0
984
Add Woocommerce theme support
PHP
0
0
772
WP Update WP Mail email and sender from defaults
PHP
0
0
916
WP if Page, Post or Taxonomy is a child of specific ID
PHP
0
0
740