Recently Updated Pages
Troubleshooting
A connected event is not receiving the emitted signal Make sure the handler is accepting the same...
Static redirection
Inside a server block: # use ~* to match a string inside a hostname if ($host ~* 'living') { #...
Hiding blocks from the block inserter
Hiding blocks allow the blocks to be used for existing content, but not for new content. function...
Common questions
Why would you use onready var versus regular var? var is assigned when the script instance is c...
Smart audio output switching
Use a wrapper around DWeller's amazing switchaudiosource, to use partial matching to switch to an...
Auto linking project toolchains
If you use direnv you can automatically setup your project toolchain requirements. In the case of...
Firefox Tweaks
Performance // speed up them sites network.dns.disablePrefetchFromHTTPS = false network.predictor...
Push.Default Strategies
I was accidentally updating other branches when pushing my feature branch, and didn't realise why...
Persistent RAMDisk
Works on macOS Big Sur. Reference Persistence There is a non-deprecated way to do it: Open ...
WP-CLI create post with custom tax
wp mycpt create --tags='test1,test2' $tags = null; if ( isset( $assoc_args['tags'] ) ) { $tag...
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...
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...