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…
Increase Dropdown Menu Width - Divi Themes
.et_pb_menu ul.sub-menu { width: 300px; /* Adjust this value to your desired width */ } /*…
Javascript Org Chart
window.onload = function() { // Initial organizational data structure let orgData = { id: '1', name:…
ACF_KEYSMST_MSTCASECPT – TAB: TREATMENT PROGRESS (v3.0 Modular)
/** * ============================================ * MST CASE - TAB: TREATMENT PROGRESS (v3.0 Modular) * ============================================ * *…
CSS_Universal - BuddyBoss + LifterLMS + Gravity Forms + GravityView stack
- Global Gravity Forms style fixes - Red error messages (shared brand red) - Black/white confirmation…
Cortex E-commerce Products SEO Meta
/** * Cortex E-commerce Products SEO Meta API v1.0 * REST Endpoints for WooCommerce Product &…
ModalCSS
Used to display popup modal in GenerateBlocks
Prevent Wholesale Customer to Add Product to the Cart If The Product is Low on Stock
// Prevent wholesale customer to add to cart if the product is low on stock add_filter('woocommerce_is_purchasable',…
Publishing email
Emails the author when their download is published.
Move User Fields Below Account Creation
Move the user fields below the "create an account" fields