Examples
n. One that is representative of a group as a whole.
n. One serving as a pattern of a specific kind.
n. A similar case that constitutes a model or precedent.
Minimal Cron
Change the following: Prefix: svd_ function svd_deactivate() { wp_clear_scheduled_hook( '...
Run WP CLI On All Sites Within A Network
# update an option. wp site list --field=url | xargs -I % wp --url=% option update [option na...
Hooks for assets
Quick reference for where to hook in styles and scripts: Where Action Admin adm...
Updating post data on status transition
You might be tempted to set the WP_Post properties (but this is an action), or use wp_update_post...
Filter one-liners
Render links in content as HTML A elements: add_filter( 'the_content', 'make_clickable' );
WP-CLI create post with custom tax
wp mycpt create --tags='test1,test2' $tags = null; if ( isset( $assoc_args['tags'] ) ) { $tag...
Hiding blocks from the block inserter
Hiding blocks allow the blocks to be used for existing content, but not for new content. function...