Kybernaut with glasses

Snippets

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…