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
2269
PHP / WordPress post to Slack
PHP
0
7
4943
PHP WordPress - JSON Endpoint from add_rewrite_rule
PHP
2
1
3412
PHP WordPress - Random Image Endpoint
PHP
0
1
1933
Wordpress: Pull image with dynamic size & crop
PHP
2
4
3096
WordPress filter Author in RSS Feeds to be static
PHP
0
2
1699
WordPress __return_{x} handlers for filters
PHP
0
1
1550
PHP WordPress - Filter Max Image Width for SRCSET
PHP
0
0
1988
WordPress Export WXR and Capture the Results
PHP
0
0
1920
WordPress Merged Array with Default Args
PHP
0
0
2061
WordPress Polylang WP_Query by Language
PHP
0
1
18250
WordPress Polylang Get Language
PHP
0
1
6149
PHP WordPress - Deprecated Function
PHP
0
1
2036
PHP WordPress - Create Lifetime Nonce
PHP
0
4
2214
PHP WordPress - Make SoundCloud oEmbed Responsive
PHP
0
2
2461
PHP WordPress - Create Brightcove Video Embed
PHP
0
3
2813
PHP WordPress - Remove the Login Shake Effect
PHP
0
1
1527
PHP WordPress - Add Custom Field to Body Class
PHP
0
1
1677
PHP WordPress - Create Codepad.co Snippet Image Embed
PHP
0
1
2444
PHP WordPress - Responsive Images Added to Visual Editor by Default
PHP
0
0
1537
PHP WordPress - Remove JSON API and oEmbed links in header
PHP
0
0
2449
PHP WordPress - Disable emojicons Introduced with WP 4.2
PHP
0
2
1463
WP-CLI - List Installed Themes
Bash
0
0
1982
WP-CLI - Install Plugin
Bash
0
0
1625
WP-CLI - List Installed Plugins
Bash
0
0
1919
WP-CLI - Interactive PHP Console
Bash
0
0
1626
WP-CLI - Execute Arbitrary PHP Code
Bash
0
0
2118
WP-CLI - Custom Command
PHP
0
0
2315
WP-CLI - Interactive MySQL Console
Bash
0
0
1433
PHP WordPress - Add Categories To Attachments
PHP
0
1
1485
PHP WordPress - Add Tags To Attachments
PHP
0
0
1471
PHP WordPress - Register Custom Taxonomy with Attachment
PHP
0
1
1589
Bash WP-CLI - Import WordPress Test Data
Bash
0
0
1654
PHP WordPress - Custom DB Error Page
PHP
0
1
1605
PHP WordPress - Flush Rewrite Rules on File Change or Every X Hours
PHP
0
0
1461
PHP WordPress - Get All Image URLS from Media Library
PHP
0
0
1612
PHP WordPress - Get Post's Galleries as Shortcode Arguments
PHP
0
0
1490
PHP WordPress - Constants
PHP
0
4
3143
PHP WordPress - Add Media Upload Tab
PHP
0
1
1874
PHP WordPress - Add Media Upload Button
PHP
0
1
1754
Bash - Allow WordPress to Write Session Data
Bash
0
0
1956
PHP WordPress - Term Meta
PHP
0
0
1698
PHP WordPress - Set Transient Cache Data
PHP
0
1
1834
How to Solve WordPress Could Not Create Directory
Command
0
3
1556
PHP WordPress - Custom REST Route
PHP
0
0
1510
PHP WordPress - Limit # of Words
PHP
0
0
1552
PHP Wordpress - Get Random Post
PHP
0
1
1518
PHP WordPress - Add Inline JavaScript after Enqueued footer script
PHP
0
3
2225
PHP WordPress - Load your plugin first
PHP
0
2
1918
PHP WordPress - Remove Admin Bar from Front-End
Bash
0
2
1433
PHP Wordpress - Debug Backtrace for call stack
JavaScript
0
0
1840
PHP WordPress - Show all registered rewrite rules
PHP
0
0
1466
Bash - Use ApacheBench to measure the performance of HTTP web servers
Bash
0
8
8923
PHP WordPress - Disable XMLRPC
JavaScript
0
4
1511
Apache WordPress - Disable XMLRPC from .htaccess
Apache
0
4
1629
Bash - CURL a POST with custom UserAgent and follow redirects
Bash
0
6
2153
PHP - Set DateTimeZone of DateTime
PHP
0
4
1677
JavaScript Wordpress - Simple REST API w/jQuery
PHP
0
3
1512
PHP WordPress - Build Query String with http_build_query
PHP
0
14
2379
PHP WordPress - List All Roles
PHP
0
10
1623
PHP WordPress - Disable JSON Rest API
PHP
0
7
1579
WP-CLI - Run command as a given WordPress user
Bash
0
1
1519
WP-CLI - Run a command command against multiple sites on WordPress multisite
Bash
0
8
1638
WP-CLI - Update all plugins
Bash
0
1
1610
Bash WP-CLI - Prompt to update all plugins on each alias
Bash
0
2
1476
Bash WP-CLI - Update all plugins in @all Aliases
Bash
0
2
1550
Bash WP-CLI - Generate a task list of all WP-CLI commands
Bash
0
1
1971
Bash WP-CLI - Change user password
Bash
0
1
1526
Bash WP-CLI - Set admin user's role to subscriber across all aliases
Bash
0
5
1459
WP-CLI - List All Roles
Bash
0
1
1426
WP-CLI - Detect whether WP-CLI is running
Apache
0
10
1645
WP-CLI - Export GZip Compressed Database
Bash
0
8
4234
WP-CLI - Import GZip Compressed Database
Bash
0
7
3903
WP-CLI - List the MySQL database tables
Bash
0
3
1591
WP-CLI - Export GZip Compressed Database For Single Site
Bash
0
1
1578
.HTACCESS - Force HTTPS for WordPress
Bash
0
15
1828
WP-CLI - Update core, all themes and all plugins
Bash
0
2
1588
WP-CLI - Flush rewrite rules for all sites
Bash
0
6
1800