monsterinsights_lite_ecommerce_addon_notice

The Google Analytics for WordPress by MonsterInsights monsterinsights lite ecommerce addon notice function.

Description

monsterinsights_lite_ecommerce_addon_notice(); 

Usage

  1. if ( !function_exists( 'monsterinsights_lite_ecommerce_addon_notice' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'google-analytics-for-wordpress-by-monsterinsights/lite/includes/admin/addons.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = monsterinsights_lite_ecommerce_addon_notice(); 
  7.  

Defined (1)

The function is defined in the following location(s).

/lite/includes/admin/addons.php  
  1. function monsterinsights_lite_ecommerce_addon_notice( ) { 
  2. echo '<div class="monsterinsights-upsell-box"><h2>' . esc_html__( 'Want to setup eCommerce Tracking', 'google-analytics-for-wordpress') . '</h2>' 
  3. . '<p class="upsell-lite">' . sprintf( esc_html__( 'To setup eCommerce tracking, please %1$supgrade your MonsterInsights account%2$s to unlock this feature.', 'google-analytics-for-wordpress' ), '<a href="' . esc_attr( monsterinsights_get_upgrade_link() ) . '" target="_blank" rel="noopener noreferrer" referrer="no-referrer" >', '</a>' ) , '<br /><a href="' . monsterinsights_get_upgrade_link() . '" class="monsterinsights-upsell-box-button button button-primary" target="_blank" rel="noopener noreferrer" referrer="no-referrer" >' . esc_html__( 'Learn more about MonsterInsights Pro', 'google-analytics-for-wordpress' ) . '</a></p>' 
  4.  
  5. . '</div>';