php

Disable WP Speculative Loading

<?php /** * Disable Speculative Loading in WordPress * * WordPress 6.5+ introduces speculative loading (like prerendering and prefetching) *… Read more »

Change "Howdy Admin" in Admin Bar

<?php /** * Customizes the WordPress admin bar greeting text. * * This function replaces the default "Howdy," text in… Read more »

This function hides all WordPress content from users who are not logged in. Visitors will see a custom message instead of any pages or posts, except for the login page.

<?php /** * Hide entire site unless logged in. * * Gist Keywords: wordpress, privacy * Author: Knol Aust *… Read more »

Override TinyMCE's default colors. Created specifically for Classic Editor Block or ACF WYSIWYG in WordPress.

<?php /** * Limit MCE WYSIWYG Colors * * This function overrides TinyMCE's default color options in the WordPress Classic… Read more »

How to Disable Unwanted Image Sizes From WordPress 5.3+

<?php /** * Disable Unnecessary Generated Image Sizes * Author: Knol Aust * Gist Keywords: wordpress, media library, images, image… Read more »

Output Advanced Custom Fields Data as JSON in JavaScript Console

<?php /** * Output Advanced Custom Fields Data as JSON in JavaScript Console. * * This code retrieves data from… Read more »