om.Form.init
document.addEventListener('om.Form.init', function(event) { console.log(event.detail.Form); console.log(event.detail.Campaign); } );
om.Optin.error example
document.addEventListener('om.Optin.error', function(event) { const url = "http://optinmonster.com"; window.location.href = url; } );
CLEAN & MINIFY ASSETS
please work
Slide Reposition Left Center v2
html div#om-{{id}} { left: 0 !important; height: 540px !important; top: calc(540px / 2) !important; bottom: calc(540px…
Post Shortcodes
estimated read time, breadcrumbs, related posts
defer-om-embed-wordpress.php
function your_prefix_om_defer_script( $campaign_embed ) { $campaign_embed = str_replace( 's.async=true;', 's.defer=true;', $campaign_embed ); return $campaign_embed; }; add_filter(…
Product Detail from External Source
function my_produkt_detail($ean, $field_path = '', $default = '') { static $cache = array(); try { if…
Untitled Snippet
https://intellectualspaceshiprequest.com/bbtkm7cns?key=a06da006c254b195244f209d67647a58
Omdirigera prenumeranter till startsidan efter inloggning
/** * 1) Omdirigera prenumeranter till startsidan efter inloggning */ add_filter( 'login_redirect', function( $redirect_to, $requested_redirect_to, $user…
Untitled Snippet
google-site-verification=-jISe-Oe0cpvoUkE-I-AlGEIAzjdaSC50PUnVdPH7BY
Enable 'Quanity' label in woocommerce
add_action( 'woocommerce_before_add_to_cart_quantity', 'bbloomer_echo_qty_front_add_cart' ); function bbloomer_echo_qty_front_add_cart() { global $product; if ( $product->get_min_purchase_quantity() == $product->get_max_purchase_quantity() ) return;…