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
2069
PHP / WordPress post to Slack
PHP
0
7
4334
PHP WordPress - JSON Endpoint from add_rewrite_rule
PHP
2
1
2984
PHP WordPress - Random Image Endpoint
PHP
0
1
1715
Wordpress: Pull image with dynamic size & crop
PHP
2
4
2697
WordPress filter Author in RSS Feeds to be static
PHP
0
2
1449
WordPress __return_{x} handlers for filters
PHP
0
1
1354
PHP WordPress - Filter Max Image Width for SRCSET
PHP
0
0
1791
WordPress Export WXR and Capture the Results
PHP
0
0
1675
WordPress Merged Array with Default Args
PHP
0
0
1784
WordPress Polylang WP_Query by Language
PHP
0
1
17529
WordPress Polylang Get Language
PHP
0
1
5763
PHP WordPress - Deprecated Function
PHP
0
1
1779
PHP WordPress - Create Lifetime Nonce
PHP
0
4
1977
PHP WordPress - Make SoundCloud oEmbed Responsive
PHP
0
2
2144
PHP WordPress - Create Brightcove Video Embed
PHP
0
3
2526
PHP WordPress - Remove the Login Shake Effect
PHP
0
1
1355
PHP WordPress - Add Custom Field to Body Class
PHP
0
1
1512
PHP WordPress - Create Codepad.co Snippet Image Embed
PHP
0
1
2120
PHP WordPress - Responsive Images Added to Visual Editor by Default
PHP
0
0
1341
PHP WordPress - Remove JSON API and oEmbed links in header
PHP
0
0
2192
PHP WordPress - Disable emojicons Introduced with WP 4.2
PHP
0
2
1261
WP-CLI - List Installed Themes
Bash
0
0
1677
WP-CLI - Install Plugin
Bash
0
0
1439
WP-CLI - List Installed Plugins
Bash
0
0
1654
WP-CLI - Interactive PHP Console
Bash
0
0
1437
WP-CLI - Execute Arbitrary PHP Code
Bash
0
0
1848
WP-CLI - Custom Command
PHP
0
0
2022
WP-CLI - Interactive MySQL Console
Bash
0
0
1252
PHP WordPress - Add Categories To Attachments
PHP
0
1
1306
PHP WordPress - Add Tags To Attachments
PHP
0
0
1303
PHP WordPress - Register Custom Taxonomy with Attachment
PHP
0
1
1407
Bash WP-CLI - Import WordPress Test Data
Bash
0
0
1479
PHP WordPress - Custom DB Error Page
PHP
0
1
1374
PHP WordPress - Flush Rewrite Rules on File Change or Every X Hours
PHP
0
0
1272
PHP WordPress - Get All Image URLS from Media Library
PHP
0
0
1393
PHP WordPress - Get Post's Galleries as Shortcode Arguments
PHP
0
0
1282
PHP WordPress - Constants
PHP
0
4
2737
PHP WordPress - Add Media Upload Tab
PHP
0
1
1682
PHP WordPress - Add Media Upload Button
PHP
0
1
1556
Bash - Allow WordPress to Write Session Data
Bash
0
0
1709
PHP WordPress - Term Meta
PHP
0
0
1477
PHP WordPress - Set Transient Cache Data
PHP
0
1
1589
How to Solve WordPress Could Not Create Directory
Command
0
3
1369
PHP WordPress - Custom REST Route
PHP
0
0
1284
PHP WordPress - Limit # of Words
PHP
0
0
1332
PHP Wordpress - Get Random Post
PHP
0
1
1347
PHP WordPress - Add Inline JavaScript after Enqueued footer script
PHP
0
3
2031
PHP WordPress - Load your plugin first
PHP
0
2
1640
PHP WordPress - Remove Admin Bar from Front-End
Bash
0
2
1264
PHP Wordpress - Debug Backtrace for call stack
JavaScript
0
0
1600
PHP WordPress - Show all registered rewrite rules
PHP
0
0
1303
Bash - Use ApacheBench to measure the performance of HTTP web servers
Bash
0
8
8071
PHP WordPress - Disable XMLRPC
JavaScript
0
4
1326
Apache WordPress - Disable XMLRPC from .htaccess
Apache
0
4
1438
Bash - CURL a POST with custom UserAgent and follow redirects
Bash
0
6
1899
PHP - Set DateTimeZone of DateTime
PHP
0
4
1478
JavaScript Wordpress - Simple REST API w/jQuery
PHP
0
3
1321
PHP WordPress - Build Query String with http_build_query
PHP
0
14
2111
PHP WordPress - List All Roles
PHP
0
10
1421
PHP WordPress - Disable JSON Rest API
PHP
0
7
1387
WP-CLI - Run command as a given WordPress user
Bash
0
1
1328
WP-CLI - Run a command command against multiple sites on WordPress multisite
Bash
0
8
1434
WP-CLI - Update all plugins
Bash
0
1
1349
Bash WP-CLI - Prompt to update all plugins on each alias
Bash
0
2
1290
Bash WP-CLI - Update all plugins in @all Aliases
Bash
0
2
1366
Bash WP-CLI - Generate a task list of all WP-CLI commands
Bash
0
1
1773
Bash WP-CLI - Change user password
Bash
0
1
1332
Bash WP-CLI - Set admin user's role to subscriber across all aliases
Bash
0
5
1277
WP-CLI - List All Roles
Bash
0
1
1252
WP-CLI - Detect whether WP-CLI is running
Apache
0
10
1457
WP-CLI - Export GZip Compressed Database
Bash
0
8
3845
WP-CLI - Import GZip Compressed Database
Bash
0
7
3341
WP-CLI - List the MySQL database tables
Bash
0
3
1378
WP-CLI - Export GZip Compressed Database For Single Site
Bash
0
1
1356
.HTACCESS - Force HTTPS for WordPress
Bash
0
15
1661
WP-CLI - Update core, all themes and all plugins
Bash
0
2
1396
WP-CLI - Flush rewrite rules for all sites
Bash
0
6
1602