php

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 »

Hide ReCaptcha overlay when page does not contain Contact Form 7 form.

<?php /** * Hide Contact Form 7 reCAPTCHA on non-contact pages. * * This function removes the enqueuing of Contact… Read more »

gzip Compression for WordPress

<?php /** * Enable GZIP compression for HTML, CSS, JavaScript, Text, XML, and fonts. * * This code snippet configures… Read more »

Adds an "options" page for a Custom Post Type and ACF

<?php /** * Add Options Page for Custom Post Type and ACF * * Adds an "options" page for a… Read more »

Hide content editor on specific pages. Useful for ACF.

<?php /** * Hide Content Editors on Specific Pages * * This function hides the content editor on specific pages… Read more »