monsterinsights_settings_ublock_error_js

The Google Analytics for WordPress by MonsterInsights monsterinsights settings ublock error js function.

Description

monsterinsights_settings_ublock_error_js(); 

Usage

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

Defined (1)

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

/includes/admin/common.php  
  1. function monsterinsights_settings_ublock_error_js() { 
  2. echo "<script type='text/javascript'>\n"; 
  3. echo "jQuery( document ).ready( function( $ ) { 
  4. if ( window.uorigindetected == null) { 
  5. $('#monsterinsights-ublock-origin-error').show(); 
  6. $('.monsterinsights-nav-tabs').hide(); 
  7. $('.monsterinsights-nav-container').hide(); 
  8. $('#monsterinsights-addon-heading').hide(); 
  9. $('#monsterinsights-addons').hide(); 
  10. $('#monsterinsights-reports').hide(); 
  11. });"; 
  12. echo "\n</script>";