monsterinsights_export_settings

The Google Analytics for WordPress by MonsterInsights monsterinsights export settings function.

Description

monsterinsights_export_settings(); 

Usage

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

Defined (1)

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

/includes/options.php  
  1. function monsterinsights_export_settings() { 
  2. $settings = monsterinsights_get_options(); 
  3. $exclude = array(  
  4. 'analytics_profile',  
  5. 'analytics_profile_code',  
  6. 'analytics_profile_name',  
  7. 'oauth_version',  
  8. 'cron_last_run',  
  9. 'monsterinsights_oauth_status',  
  10. ); 
  11.  
  12. foreach ( $exclude as $e ) { 
  13. if ( ! empty( $settings[ $e ] ) ) { 
  14. unset( $settings[ $e ] ); 
  15. return wp_json_encode( $settings );