monsterinsights_system_info

Output System Info file.

Description

monsterinsights_system_info(); 

Usage

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

Defined (1)

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

/includes/admin/settings/tab-status.php  
  1. function monsterinsights_system_info() { 
  2. if ( ! empty( $_REQUEST['monsterinsights-action'] ) && $_REQUEST['monsterinsights-action'] === 'download_sysinfo' ) { 
  3. if ( ! current_user_can( 'monsterinsights_save_settings' ) ) { 
  4. return; 
  5. nocache_headers(); 
  6. header( 'Content-Type: text/plain' ); 
  7. header( 'Content-Disposition: attachment; filename="monsterinsights-system-info.txt"' ); 
  8. echo wp_strip_all_tags( $_POST['monsterinsights-sysinfo'] ); 
  9. die();