MemebrPress: Send Membership-Specific Welcome Email Only When Transaction Is Completed

The code snippet will allow the membership-specific welcome email to be triggered only following the successful…

om.Campaign.init

document.addEventListener('om.Campaign.init', function(event) { // This event is passed the Campaign object console.log(event.detail.Campaign); } );

om.Countdown.init

document.addEventListener('om.Countdown.init', function(event) { console.log(event.detail.Countdown); console.log(event.detail.Campaign); } );

om.Analytics.track example 1

document.addEventListener('om.Analytics.track', function(event) { if ( 'conversion' === event.detail.Analytics.type ) { console.log(event.detail.Campaign.id + '-' + event.detail.Campaign.type +…

Page Element Shortcodes

add_shortcode('page_title', function () { global $wp_query; if( isset( $wp_query ) && (bool) $wp_query->is_posts_page ) { return…

Shortcode widget main categories WooCommerce

function shortcode_categorie_principali_wc() { $args = array( 'taxonomy' => 'product_cat', 'orderby' => 'menu_order', 'order' => 'ASC', 'hide_empty'…

Optin View

#om-{{id}}-optin button.{{ns}}-CloseButton { /* Your Custom Styles */ }

plain-css.css

html div#om-{{id}} * { /* Anything inside here will be applied to all elements within your…

wrong redirect .htaccess

# Slash al final RewriteBase / RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_URI} !# RewriteCond %{REQUEST_URI} !(.*)/$ RewriteRule…

Disabling the Admin Bar for Non-Admin Users

add_action('after_setup_theme', 'remove_admin_bar'); function remove_admin_bar() { if (!current_user_can('administrator') && !is_admin()) { show_admin_bar(false); } }

1 88 89 90 91 92 221