Add Custom Admin Body Class in WordPress
This snippet adds a custom CSS class (notranslate) to the WordPress admin body tag. It can be useful for preventing browser translation tools or applying custom admin-specific styling and functionality.
This snippet adds a custom CSS class (notranslate) to the WordPress admin body tag. It can be useful for preventing browser translation tools or applying custom admin-specific styling and functionality.
What This Code Does This code removes all admin notifications/notices from the WordPress dashboard — including plugin updates, theme alerts, warnings, and any other notices shown in the admin area. WordPress Loads ↓ wp-settings.php initializes ↓ admin_init hook fires ← Your function runs HERE ↓ remove_admin_notices() executes ↓ $wp_filter[‘admin_notices’] → DELETED $wp_filter[‘network_admin_notices’] → DELETED […]
Enables WebP uploads in media library.
Shows maintenance message to visitors.
This snippet extends WordPress upload support by allowing additional file types such as SVG, SVGZ, JSON, and DOC files through the Media Library. It also demonstrates how to remove unwanted mime types (like EXE) for improved security. Useful for developers working with custom assets, animations, or document uploads.
This snippet adds the notranslate class to the WordPress admin body to help prevent browsers like Google Chrome from automatically translating the admin dashboard. Useful for maintaining original text formatting and avoiding translation-related UI issues in the backend.
This snippet disables WordPress automatic large image scaling by removing the big image size threshold. It prevents WordPress from generating resized “-scaled” versions of uploaded images, allowing original high-resolution images to remain unchanged.
Hides the frontend admin toolbar for subscribers, customers, and other non-admin users.
Add a “Clone” action to posts and pages that instantly duplicates content, custom fields, taxonomies, and settings into a new draft. Perfect for developers, agencies, and content teams who frequently reuse layouts or landing pages.
Enter to see all results · Esc to close