Skip to main content

Recently Updated Pages

Common questions

Godot

Why would you use onready var versus regular var? var is assigned when the script instance is c...

Updated 20 hours ago by Sander

Smart audio output switching

Automation

Use a wrapper around DWeller's amazing switchaudiosource, to use partial matching to switch to an...

Updated 2 weeks ago by Sander

Auto linking project toolchains

WordPress Knowledge

If you use direnv you can automatically setup your project toolchain requirements. In the case of...

Updated 5 months ago by Sander

Firefox Tweaks

Tweaks

Performance // speed up them sites network.dns.disablePrefetchFromHTTPS = false network.predictor...

Updated 8 months ago by Sander

Push.Default Strategies

Git

I was accidentally updating other branches when pushing my feature branch, and didn't realise why...

Updated 8 months ago by Sander

Persistent RAMDisk

macOS

Works on macOS Big Sur. Reference Persistence There is a non-deprecated way to do it: Open ...

Updated 8 months ago by Sander

WP-CLI create post with custom tax

WordPress Examples

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

Updated 9 months ago by Sander

Blocks in Simple English

WordPress Knowledge

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

Updated 9 months ago by Sander

Hooks for assets

WordPress Examples

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

Updated 11 months ago by Sander

Filtering Block based content

WordPress Knowledge

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

Updated 11 months ago by Sander

Onboarding Questions

Workflows

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

Updated 11 months ago by Sander

Filter one-liners

WordPress Examples

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

Updated 11 months ago by Sander

Package type "library" is not supported

WordPress Troubleshooting

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

Updated 1 year ago by Sander

Updating post data on status transition

WordPress Examples

You might be tempted to set the WP_Post properties (but this is an action), or use wp_update_post...

Updated 1 year ago by Sander

Resolving composer.lock merge conflicts

WordPress Troubleshooting

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

Updated 1 year ago by Sander

Change root site

WordPress Knowledge

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

Updated 1 year ago by Sander

Notetaking Tools

Workflows

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

Updated 1 year ago by Sander

Docksal Setup

CodeIgniter

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

Updated 1 year ago by Sander

Move a site to a new domain

WordPress Knowledge

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

Updated 1 year ago by Sander

Nonces

WordPress Knowledge

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

Updated 2 years ago by Sander