Skip to main content

Recently Updated Pages

Troubleshooting

Godot

A connected event is not receiving the emitted signal Make sure the handler is accepting the same...

Updated 1 year ago by Sander

Static redirection

Nginx

Inside a server block: # use ~* to match a string inside a hostname if ($host ~* 'living') { #...

Updated 1 year ago by Sander

Hiding blocks from the block inserter

WordPress Examples

Hiding blocks allow the blocks to be used for existing content, but not for new content. function...

Updated 1 year ago by Sander

Common questions

Godot

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

Updated 1 year 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 1 year 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 2 years ago by Sander

Firefox Tweaks

Tweaks

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

Updated 2 years ago by Sander

Push.Default Strategies

Git

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

Updated 2 years ago by Sander

Persistent RAMDisk

macOS

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

Updated 2 years 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 2 years ago by Sander

Hooks for assets

WordPress Examples

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

Updated 2 years 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 2 years ago by Sander

Onboarding Questions

Workflows

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

Updated 2 years ago by Sander

Filter one-liners

WordPress Examples

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

Updated 2 years 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 2 years 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 2 years ago by Sander

Resolving composer.lock merge conflicts

WordPress Troubleshooting

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

Updated 2 years 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 3 years ago by Sander

Docksal Setup

CodeIgniter

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

Updated 3 years 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 3 years ago by Sander