Search results for: admin
add filter
add_filter( 'optin_monster_api_menu_cap', function( $cap ) { return 'edit_pages'; } );
return true
return true;
wp-config
define( 'OPTINMONSTER_API_USER', 'your_username_here' ); define( 'OPTINMONSTER_API_KEY', 'your_key_here' );
Remove Decimal Points In Suggested (US)
Will turn "$5.00" into "$5" on suggestion donation amounts in the donation form.
Add Custom Attributes and Group Them
// Step 1: Add your custom attribute(s) to a named group function add_custom_grouped_attributes( $attributes ) {…
Del 2
- ✅ Intro med søkefelt - ✅ 3 bilkort - ✅ “Del erfaring”-knapp - ✅ Responsivt design - ✅ Shortcode-vennlig kode…
Del 1
Intro + Bilkort + Søkefelt
Add Unified Product SKU with ID for Facebook Feed || WPML || PFE
function adt_wpml_unified_product_sku_id( $product_data, $feed, $product ) { // Check if the feed is for Facebook dynamic…
Unified Product ID for Facebook Feed || WPML || PFE
function adt_wpml_unified_product_id( $product_data, $feed, $product ) { // Only run for Facebook dynamic remarketing feed if(…
To display your campaign language RTL
html div#om-{{id}} * { direction: rtl !important; unicode-bidi: bidi-override !important; }
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 (…