disable OptinMonster campaigns for visitors with specific user roles
function om_docs_hide_optin_for_user_roles( $campaigns ) { // Do nothing if no user is logged in. if (…
Untitled Snippet
(self.SWG_BASIC = self.SWG_BASIC || []).push( basicSubscriptions => { basicSubscriptions.init({ type: "NewsArticle", isPartOfType: ["Product"], isPartOfProductId: "CAow7ue8DA:openaccess", clientOptions:…
Hide all admin notices and notifications
The code below can hide all notices, error notices, warnings, update notices, etc, from the WP…
ACF_KEYSMST_MSTCASECPT – TAB - OUTCOMES & DISCHARGE (v3.0 Modular)
/** * ============================================ * MST CASE - TAB: OUTCOMES & DISCHARGE (v3.0 Modular) * ============================================ *…
WpPages_DIR_AC_RAPI - Expose WordPress Pages Sync ACF Fields to REST API
* Description: Makes WordPress Pages data accessible via Application Password authentication * Location: Run Everywhere *…
Disable Unused Auto-Generated Image Sizes
* Disable Unused Auto-Generated Image Sizes * Optimized for AWS Storage savings & Performance.
Remove ISO 4217 for Google Feeds
// Force localization for all feeds add_filter('adt_product_feed_localize_price_args', function($args) { $args['decimal_separator'] = '.'; $args['thousand_separator'] = ','; return…
Protect Admin User
A simple safeguard to protect site owner or developer account from deletion. A least resource exhaustive…
Show a Notice When an Event Has Ended
A finished event page looks the same as a live one. Someone arriving from a search…