The Google Analytics for WordPress by MonsterInsights monsterinsights ublock notice function.




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

Defined (1)

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

  1. function monsterinsights_ublock_notice() { 
  2. ob_start();?> 
  3. <div id="monsterinsights-ublock-origin-error" class="error inline" style="display:none;"> 
  4. <?php echo sprintf( esc_html__( 'MonsterInsights has detected that it\'s files are being blocked. This is usually caused by a adblock browser plugin (particularly uBlock Origin), or a conflicting WordPress theme or plugin. This issue only affects the admin side of MonsterInsights. To solve this, ensure MonsterInsights is whitelisted for your website URL in any adblock browser plugin you use. For step by step directions on how to do this, %1$sclick here%2$s. If this doesn\'t solve the issue (rare), send us a ticket %3$shere%2$s and we\'ll be happy to help diagnose the issue.', 'google-analytics-for-wordpress'), '<a href="" target="_blank" rel="noopener noreferrer" referrer="no-referrer">', '</a>', '<a href="" target="_blank" rel="noopener noreferrer" referrer="no-referrer">'); 
  5. ?> 
  6. </div> 
  7. <?php 
  8. return ob_get_clean();