Skip to main content
Advanced Search
Search Terms
Content Type

Exact Matches
Tag Searches
Date Options
Updated after
Updated before
Created after
Created before

Search Results

82 total results found

WagTail

A cms on top of Django

Docksal Setup

CodeIgniter

Thoughts on running CodeIgniter with Docksal. Initial setup is easy # Setup CodeIgniter composer create-project codeigniter4/appstarter myproject cd myproject # Initialise a new Docksal project # set DOCROOT to public fin init # Plug the database ...

Change root site

WordPress Knowledge

To change the root site in a multisite network: define( 'BLOG_ID_CURRENT_SITE', 1 ); Plugins might not be compatbile with this change.

Code Snippets

Resolving composer.lock merge conflicts

WordPress Troubleshooting

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

PHP

Updating post data on transition

WordPress Knowledge

Media

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() but there is some hard-coded behaviour in wp_insert_post() that might affect your data. So it's better to emulate wp_publish_post(). function action_on_future...

Testing

Package type "library" is not supported

WordPress Troubleshooting

You might see the following message after running composer: Reading /Users/svandragt/.composer/auth.json Reading /Users/svandragt/dev/_hm/siemens/milestones.local/vendor/composer/installed.json Reading /Users/svandragt/.composer/vendor/composer/installed.js...

Blocks in Simple English

WordPress Knowledge

The following block types exist and this is what they do. I'm always getting confused by the terminology, as I'm not a native English speaker and the terminology does not cleanly map on other programming paradigms. Block Type What They Say What I say ...

Filter one-liners

WordPress Examples

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

Filtering Block based content

WordPress Knowledge

Name Type Usage parse_blocks( string $content ) Function if you want to take a bunch of block attributes and store them in meta on save / generate stuff.More info pre_render_block Filter hook More info render_block Filter hook More...

WP-CLI create post with custom tax

WordPress Examples

wp mycpt create --tags='test1,test2' $tags = null; if ( isset( $assoc_args['tags'] ) ) { $tags = wp_parse_list( $assoc_args['tags'] ); unset( $assoc_args['tags'] ); } ... $command = "post create --porcelain " . assoc_args_to_str( $assoc_args ); $...

Persistent RAMDisk

macOS

Works on macOS Big Sur. Reference Persistence There is a non-deprecated way to do it: Open the Script Editor app. Paste do shell script "~/.login" on quit do shell script "~/.logout" continue quit end quit File > Save, Select Application a...

Push.Default Strategies

Git

I was accidentally updating other branches when pushing my feature branch, and didn't realise why. Ever pushed to the wrong branch by mistake? what happens when you git push? Is your expectation that your local branch is pushed to the remote? This might not be...

Firefox Tweaks

Tweaks

Performance // speed up them sites network.dns.disablePrefetchFromHTTPS = false network.predictor.enable-prefetch = true network.http.max-persistent-connections-per-server = 12 Usability // Restore system print preview print.tab_modal.enabled = false Securit...