allow editors
add_filter( 'optin_monster_api_menu_cap', function( $cap ) { return 'edit_pages'; } );
start close a element
Check out OptinMonster!
Untitled Snippet
<meta name="google-site-verification" content="dd3uXq84TzhHtU_Hb3LG5Lw0lrijOzL6AKE6A3ST1uM"
Custom Separator for Data Manipulation
The Data Manipulation default separator is a space. You can change this to a custom separator…
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 &…
3 Dots for popup text in WordPress
With this snippet 3 highlighted dots appear when you create small items of text that you…
Custom Field Order on Venue Pages
Venue pages have a fixed field order and no filter to change it. This snippet replaces…
Unrestricted Admin Access
When a site is managed by multiple admins, limit unnecessary exposure of critical responsibilities.
test
// Show whether WP_DEBUG is enabled, as set in wp-config
Gravity Forms: Cambridge Caregivers Gravity Forms Snippets
Credit Card Expiration Field on Cambridge Caregivers Engagement Form year dropdown set to current year and…
Billing Address Email Tag - Actual Country Name
Replace the default {billing_address} email tag to use the full State/Country names on purchase receipts.
Let Customers Select Their User Role From A Custom Field In Wholesale Lead Capture
Create a custom field with the user role selection, make sure that the values match your…
Commissions as a fixed dollar amount, or fixed plus a percentage.
add_filter( 'wcv_commission_rate', 'my_wcv_custom_filter', 10, 3 ); function my_wcv_custom_filter( $commission, $product_id, $product_price ) { return WCV_Commission::get_commission_rate( $product_id…