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
2202
PHP / WordPress post to Slack
PHP
0
7
4657
PHP WordPress - JSON Endpoint from add_rewrite_rule
PHP
2
1
3253
PHP WordPress - Random Image Endpoint
PHP
0
1
1842
Wordpress: Pull image with dynamic size & crop
PHP
2
4
2918
WordPress filter Author in RSS Feeds to be static
PHP
0
2
1610
WordPress __return_{x} handlers for filters
PHP
0
1
1472
PHP WordPress - Filter Max Image Width for SRCSET
PHP
0
0
1909
WordPress Export WXR and Capture the Results
PHP
0
0
1815
WordPress Merged Array with Default Args
PHP
0
0
1947
WordPress Polylang WP_Query by Language
PHP
0
1
17972
WordPress Polylang Get Language
PHP
0
1
6018
PHP WordPress - Deprecated Function
PHP
0
1
1945
PHP WordPress - Create Lifetime Nonce
PHP
0
4
2112
PHP WordPress - Make SoundCloud oEmbed Responsive
PHP
0
2
2342
PHP WordPress - Create Brightcove Video Embed
PHP
0
3
2690
PHP WordPress - Remove the Login Shake Effect
PHP
0
1
1462
PHP WordPress - Add Custom Field to Body Class
PHP
0
1
1615
PHP WordPress - Create Codepad.co Snippet Image Embed
PHP
0
1
2313
PHP WordPress - Responsive Images Added to Visual Editor by Default
PHP
0
0
1459
PHP WordPress - Remove JSON API and oEmbed links in header
PHP
0
0
2356
PHP WordPress - Disable emojicons Introduced with WP 4.2
PHP
0
2
1374
WP-CLI - List Installed Themes
Bash
0
0
1830
WP-CLI - Install Plugin
Bash
0
0
1547
WP-CLI - List Installed Plugins
Bash
0
0
1805
WP-CLI - Interactive PHP Console
Bash
0
0
1554
WP-CLI - Execute Arbitrary PHP Code
Bash
0
0
2021
WP-CLI - Custom Command
PHP
0
0
2197
WP-CLI - Interactive MySQL Console
Bash
0
0
1360
PHP WordPress - Add Categories To Attachments
PHP
0
1
1413
PHP WordPress - Add Tags To Attachments
PHP
0
0
1406
PHP WordPress - Register Custom Taxonomy with Attachment
PHP
0
1
1517
Bash WP-CLI - Import WordPress Test Data
Bash
0
0
1584
PHP WordPress - Custom DB Error Page
PHP
0
1
1505
PHP WordPress - Flush Rewrite Rules on File Change or Every X Hours
PHP
0
0
1389
PHP WordPress - Get All Image URLS from Media Library
PHP
0
0
1527
PHP WordPress - Get Post's Galleries as Shortcode Arguments
PHP
0
0
1400
PHP WordPress - Constants
PHP
0
4
2974
PHP WordPress - Add Media Upload Tab
PHP
0
1
1795
PHP WordPress - Add Media Upload Button
PHP
0
1
1676
Bash - Allow WordPress to Write Session Data
Bash
0
0
1855
PHP WordPress - Term Meta
PHP
0
0
1608
PHP WordPress - Set Transient Cache Data
PHP
0
1
1735
How to Solve WordPress Could Not Create Directory
Command
0
3
1480
PHP WordPress - Custom REST Route
PHP
0
0
1428
PHP WordPress - Limit # of Words
PHP
0
0
1477
PHP Wordpress - Get Random Post
PHP
0
1
1455
PHP WordPress - Add Inline JavaScript after Enqueued footer script
PHP
0
3
2155
PHP WordPress - Load your plugin first
PHP
0
2
1811
PHP WordPress - Remove Admin Bar from Front-End
Bash
0
2
1364
PHP Wordpress - Debug Backtrace for call stack
JavaScript
0
0
1739
PHP WordPress - Show all registered rewrite rules
PHP
0
0
1405
Bash - Use ApacheBench to measure the performance of HTTP web servers
Bash
0
8
8607
PHP WordPress - Disable XMLRPC
JavaScript
0
4
1433
Apache WordPress - Disable XMLRPC from .htaccess
Apache
0
4
1547
Bash - CURL a POST with custom UserAgent and follow redirects
Bash
0
6
2050
PHP - Set DateTimeZone of DateTime
PHP
0
4
1603
JavaScript Wordpress - Simple REST API w/jQuery
PHP
0
3
1429
PHP WordPress - Build Query String with http_build_query
PHP
0
14
2273
PHP WordPress - List All Roles
PHP
0
10
1550
PHP WordPress - Disable JSON Rest API
PHP
0
7
1513
WP-CLI - Run command as a given WordPress user
Bash
0
1
1439
WP-CLI - Run a command command against multiple sites on WordPress multisite
Bash
0
8
1557
WP-CLI - Update all plugins
Bash
0
1
1477
Bash WP-CLI - Prompt to update all plugins on each alias
Bash
0
2
1390
Bash WP-CLI - Update all plugins in @all Aliases
Bash
0
2
1484
Bash WP-CLI - Generate a task list of all WP-CLI commands
Bash
0
1
1892
Bash WP-CLI - Change user password
Bash
0
1
1455
Bash WP-CLI - Set admin user's role to subscriber across all aliases
Bash
0
5
1382
WP-CLI - List All Roles
Bash
0
1
1361
WP-CLI - Detect whether WP-CLI is running
Apache
0
10
1569
WP-CLI - Export GZip Compressed Database
Bash
0
8
4108
WP-CLI - Import GZip Compressed Database
Bash
0
7
3719
WP-CLI - List the MySQL database tables
Bash
0
3
1505
WP-CLI - Export GZip Compressed Database For Single Site
Bash
0
1
1494
.HTACCESS - Force HTTPS for WordPress
Bash
0
15
1762
WP-CLI - Update core, all themes and all plugins
Bash
0
2
1516
WP-CLI - Flush rewrite rules for all sites
Bash
0
6
1727