php

Disable Automatic Updates Email in WordPress #wordpress, #updates, #email, #notifications

<?php /** * Disables automatic update notification emails in WordPress. * * This code snippet hooks into WordPress auto-update settings… Read more »

Allow SVG Files Upload in WordPress

<?php /** * Allow SVG uploads for administrator users. * * This function modifies the list of allowed mime types… Read more »

Completely Disable Comments in WordPress

<?php /** * Customizes the WordPress admin and front-end to disable comments and trackbacks. * * Gist Keywords: wordpress, comments,… Read more »

Disable Gutenberg Editor (use Classic Editor) in WordPress

<?php /** * Disables the Gutenberg editor for editing posts. * * This snippet attaches to both 'gutenberg_can_edit_post' and *… Read more »

Remove WordPress Version Number

<?php /** * Removes the WordPress version number from the HTML generator tag. * * This function attaches to the… Read more »

WordPress: Add the Page Slug to Body Class

<?php /** * Adds a custom class to the body tag in WordPress based on post type and name. *… Read more »