Uses the wpseo_robots filter from the Yoast SEO plugin to apply strict robots meta directives (noindex, nofollow, noarchive, nosnippet, etc.) to specific page templates…
These two static functions can be dropped into any static utility class and used as getters for array values. They’ve been repurposed from Gravity…
This returns `true` if a plugin is active for the site or, on a Multisite network, network-activated.
Automatically adds a clean “Out of Stock” badge overlay on WooCommerce product images without modifying templates. Useful for improving UX and helping users quickly…
Hides the WordPress admin bar for all users who are not administrators. Useful when you have subscribers, contributors, or custom roles on your site…
Hides all WordPress update notifications (core, plugins, and themes) from the dashboard. Useful for client sites to keep the admin clean while updates are…
Add the page slug to the body class for better styling.
Restrict available Gutenberg blocks by post type to simplify editing, improve consistency, and prevent clients from inserting unnecessary layout blocks. Use this snippet…
Hide the Attachment/Attachments pages on the frontend from all visitors.
Automatically redirect 404 pages to the homepage.