The WPFolks app is out on iPhone and Android. Free, no ads. Download on the App Store Get it on Google Play
Skip to main content
Login Join

Admin

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.


Remove WordPress Notification on WP admin dashboard

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 […]





Allow SVG, JSON & DOC File Uploads in WordPress

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.


Disable Browser Translation in WordPress Admin

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.


Disable Automatic Big Image Resizing in WordPress

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.



Clone Any Post/Page as Draft

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.


Proudly supported by