Parent Guide

add_action(‘admin_init’, function () { // Redirect any user trying to access comments page global $pagenow; if ($pagenow === ‘edit-comments.php’) { wp_safe_redirect(admin_url()); exit; } // Remove comments metabox from dashboard remove_meta_box(‘dashboard_recent_comments’, ‘dashboard’, ‘normal’); // Disable support for comments and trackbacks in post types foreach (get_post_types() as $post_type) { if (post_type_supports($post_type, ‘comments’)) { remove_post_type_support($post_type, ‘comments’); remove_post_type_support($post_type, ‘trackbacks’); […]

function add_image_insert_override( $sizes ){ unset( $sizes[ ‘medium’ ]); unset( $sizes[ ‘medium_large’ ]); unset( $sizes[ ‘full’ ]); unset( $sizes[ ‘tp-image-grid’ ]); unset( $sizes[ ‘768×768’ ]); unset( $sizes[ ‘1536×1536’ ]); unset( $sizes[ ‘2048×2048’ ]); return $sizes; } add_filter( ‘intermediate_image_sizes_advanced’,’add_image_insert_override’ );

add_filter( ‘elementor_pro/custom_fonts/font_display’, function( $current_value, $font_family, $data ) { return ‘swap’; }, 10, 3 );

add_filter( ‘elementor/frontend/print_google_fonts’, ‘__return_false’ );

/** * Convert Uploaded Images to WebP Format * * This snippet converts uploaded images (JPEG, PNG, GIF) to WebP format * automatically in WordPress. Ideal for use in a theme’s functions.php file, * or with plugins like Code Snippets or WPCodeBox. * * @package WordPress_Custom_Functions * @author Mark Harris * @link www.christchurchwebsolutions.co.uk * * […]

add_filter( ‘xmlrpc_enabled’, ‘__return_false’ );

.text-menu-underline: { text-decoration: none; } .text-menu-underline:hover { text-decoration: underline; }

Menu
All Categories
All Brands
All Ages
BabyGift Care
News & Event

All Categories

All Categories
All Brands
All Ages

Kid