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
WordPress
78
snippets by
Jesse Graupmann
Exclude category from RSS in Wordpress
PHP
1
4
2220
PHP / WordPress post to Slack
PHP
0
7
4735
PHP WordPress - JSON Endpoint from add_rewrite_rule
PHP
2
1
3284
PHP WordPress - Random Image Endpoint
PHP
0
1
1863
Wordpress: Pull image with dynamic size & crop
PHP
2
4
2964
WordPress filter Author in RSS Feeds to be static
PHP
0
2
1629
WordPress __return_{x} handlers for filters
PHP
0
1
1491
PHP WordPress - Filter Max Image Width for SRCSET
PHP
0
0
1926
WordPress Export WXR and Capture the Results
PHP
0
0
1833
WordPress Merged Array with Default Args
PHP
0
0
1973
WordPress Polylang WP_Query by Language
PHP
0
1
18018
WordPress Polylang Get Language
PHP
0
1
6048
PHP WordPress - Deprecated Function
PHP
0
1
1966
PHP WordPress - Create Lifetime Nonce
PHP
0
4
2132
PHP WordPress - Make SoundCloud oEmbed Responsive
PHP
0
2
2366
PHP WordPress - Create Brightcove Video Embed
PHP
0
3
2720
PHP WordPress - Remove the Login Shake Effect
PHP
0
1
1478
PHP WordPress - Add Custom Field to Body Class
PHP
0
1
1629
PHP WordPress - Create Codepad.co Snippet Image Embed
PHP
0
1
2339
PHP WordPress - Responsive Images Added to Visual Editor by Default
PHP
0
0
1473
PHP WordPress - Remove JSON API and oEmbed links in header
PHP
0
0
2375
PHP WordPress - Disable emojicons Introduced with WP 4.2
PHP
0
2
1392
WP-CLI - List Installed Themes
Bash
0
0
1851
WP-CLI - Install Plugin
Bash
0
0
1562
WP-CLI - List Installed Plugins
Bash
0
0
1830
WP-CLI - Interactive PHP Console
Bash
0
0
1573
WP-CLI - Execute Arbitrary PHP Code
Bash
0
0
2040
WP-CLI - Custom Command
PHP
0
0
2225
WP-CLI - Interactive MySQL Console
Bash
0
0
1375
PHP WordPress - Add Categories To Attachments
PHP
0
1
1430
PHP WordPress - Add Tags To Attachments
PHP
0
0
1422
PHP WordPress - Register Custom Taxonomy with Attachment
PHP
0
1
1532
Bash WP-CLI - Import WordPress Test Data
Bash
0
0
1598
PHP WordPress - Custom DB Error Page
PHP
0
1
1526
PHP WordPress - Flush Rewrite Rules on File Change or Every X Hours
PHP
0
0
1403
PHP WordPress - Get All Image URLS from Media Library
PHP
0
0
1545
PHP WordPress - Get Post's Galleries as Shortcode Arguments
PHP
0
0
1420
PHP WordPress - Constants
PHP
0
4
3021
PHP WordPress - Add Media Upload Tab
PHP
0
1
1816
PHP WordPress - Add Media Upload Button
PHP
0
1
1693
Bash - Allow WordPress to Write Session Data
Bash
0
0
1879
PHP WordPress - Term Meta
PHP
0
0
1633
PHP WordPress - Set Transient Cache Data
PHP
0
1
1757
How to Solve WordPress Could Not Create Directory
Command
0
3
1499
PHP WordPress - Custom REST Route
PHP
0
0
1446
PHP WordPress - Limit # of Words
PHP
0
0
1488
PHP Wordpress - Get Random Post
PHP
0
1
1470
PHP WordPress - Add Inline JavaScript after Enqueued footer script
PHP
0
3
2170
PHP WordPress - Load your plugin first
PHP
0
2
1834
PHP WordPress - Remove Admin Bar from Front-End
Bash
0
2
1379
PHP Wordpress - Debug Backtrace for call stack
JavaScript
0
0
1761
PHP WordPress - Show all registered rewrite rules
PHP
0
0
1416
Bash - Use ApacheBench to measure the performance of HTTP web servers
Bash
0
8
8683
PHP WordPress - Disable XMLRPC
JavaScript
0
4
1450
Apache WordPress - Disable XMLRPC from .htaccess
Apache
0
4
1564
Bash - CURL a POST with custom UserAgent and follow redirects
Bash
0
6
2070
PHP - Set DateTimeZone of DateTime
PHP
0
4
1618
JavaScript Wordpress - Simple REST API w/jQuery
PHP
0
3
1447
PHP WordPress - Build Query String with http_build_query
PHP
0
14
2300
PHP WordPress - List All Roles
PHP
0
10
1569
PHP WordPress - Disable JSON Rest API
PHP
0
7
1527
WP-CLI - Run command as a given WordPress user
Bash
0
1
1460
WP-CLI - Run a command command against multiple sites on WordPress multisite
Bash
0
8
1577
WP-CLI - Update all plugins
Bash
0
1
1492
Bash WP-CLI - Prompt to update all plugins on each alias
Bash
0
2
1412
Bash WP-CLI - Update all plugins in @all Aliases
Bash
0
2
1500
Bash WP-CLI - Generate a task list of all WP-CLI commands
Bash
0
1
1908
Bash WP-CLI - Change user password
Bash
0
1
1470
Bash WP-CLI - Set admin user's role to subscriber across all aliases
Bash
0
5
1398
WP-CLI - List All Roles
Bash
0
1
1377
WP-CLI - Detect whether WP-CLI is running
Apache
0
10
1585
WP-CLI - Export GZip Compressed Database
Bash
0
8
4144
WP-CLI - Import GZip Compressed Database
Bash
0
7
3766
WP-CLI - List the MySQL database tables
Bash
0
3
1523
WP-CLI - Export GZip Compressed Database For Single Site
Bash
0
1
1513
.HTACCESS - Force HTTPS for WordPress
Bash
0
15
1775
WP-CLI - Update core, all themes and all plugins
Bash
0
2
1534
WP-CLI - Flush rewrite rules for all sites
Bash
0
6
1744