Skip to main content

Recently Updated Pages

WP-CLI create post with custom tax

wp mycpt create --tags='test1,test2' $tags = null; if ( isset( $assoc_args['tags'] ) ) { $tag...

Blocks in Simple English

The following block types exist and this is what they do. I'm always getting confused by the term...

Hooks for assets

Quick reference for where to hook in styles and scripts: Where Action Admin adm...

Filtering Block based content

Name Type Usage parse_blocks( string $content ) Function if you want to take a bun...

Onboarding Questions

I’ve found information related to the following helps me onboard ne client services projects easi...

Filter one-liners

Render links in content as HTML A elements: add_filter( 'the_content', 'make_clickable' );

Package type "library" is not supported

You might see the following message after running composer: Reading /Users/svandragt/.composer/a...

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...

Resolving composer.lock merge conflicts

composer update --lock fixes lock file when merging branches with .lock conflicts.

Change root site

To change the root site in a multisite network: define( 'BLOG_ID_CURRENT_SITE', 1 ); Plugins mi...

Notetaking Tools

I'm always looking for a cross platform good value note taking solution. I work with the Apple ec...

Docksal Setup

Thoughts on running CodeIgniter with Docksal. Initial setup is easy # Setup CodeIgniter compos...

Move a site to a new domain

Move a site workflow: Delete existing domain mappings for the site. wp search replace $old_ur...

Nonces

WordPress nonces are not cryptographic nonces, as the latter are used only once, and the former...

Troubleshooting local environment problems

A collection of troubleshooting tips to diagnose issues with a local environment that's not worki...

DJ Setup

Hardware and Software WIP Categorising Music Separate DJ Music from your other music by movi...

Bookmarking

To prevent rethreading the same research paths, I'm documenting my bookmark journey. I'm current...

Sync the database schema

In rare situations, the WordPress database schema might not match the schema expected by the appl...

Notes on Screen Recording

Recommended way Use Shift-Command-5 and capture a desktop. The microphone can be turned on un...

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...