Kybernaut with glasses

Snippets

The Unintended Consequences of decoding=’async’ on Your WordPress site’s LCP

Snippets, Wordpress

Explore the impact of WordPress’s decoding=”async” image optimization on your site’s LCP score and learn how to fix it.

How to use Code Snippets plugin

How to, Pluginy, Snippets

Add custom code snippets to your WordPress site easily with Code Snippets plugin. No need to modify your theme files. Export/import your snippets too!

Can’t find page templates after 5.8 WordPress update

How to, Snippets

Are the page templates missing from Page Attributes? There might be two reasons: They have moved to it’s own option…

Problem solved: check for has_block() inside reusable blocks

Development, Snippets

Do you check block type with has_block() to conditionally load scripts, styles, or any other custom logic for the block…

How to kill the website when theme is missing or broken

Security, Snippets

A short snippet that will detect if the active theme is the theme you expect. If not or it’s broken, the website will die and your data won’t leak.

Add reCaptcha to Restaurant Reservations plugin

Pluginy, Security, Snippets

Snippet for adding reCaptcha to reservation form of Restaurant Reservations plugin.

WooCommerce: Number of orders per page in My Account – Orders

Snippets, WooCommerce

A short code snippet for editing the number of orders per page in the Order section on My Account page.

ACF: Options page within any other menu

Snippets

Do you need to add custom options page with ACF under another WP menu? Use this snippet.

WooCommerce: How to show in-stock quantity in the order detail

Snippets, WooCommerce

Would you like to check remaining in-stock quantity when working with orders? This snippet could help.

WP Multisite – old installation and subdirectory install

How to, Snippets, WP Multisite

The Problem You need to transform your WP site into multisite, and you have already added define (‘WP_ALLOW_MULTISITE’, true); to…