monsterinsights_get_settings_tabs

Callback for getting all of the settings tabs for MonsterInsights.

Description

(array) monsterinsights_get_settings_tabs(); 

Returns (array)

$tabs


Usage

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

Defined (1)

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

/includes/admin/settings/register-settings.php  
  1. function monsterinsights_get_settings_tabs() { 
  2. // Levels: lite, basic, plus, pro 
  3. // coming soon = true (don't count on this) 
  4. $tabs = array( 
  5. 'engagement' => array(  
  6. 'title' => esc_html__( 'Engagement', 'google-analytics-for-wordpress' ),  
  7. 'level' => 'lite' 
  8. ),  
  9. 'demographics' => array(  
  10. 'title' => esc_html__( 'Demographics', 'google-analytics-for-wordpress' ),  
  11. 'level' => 'lite' 
  12. ),  
  13. 'links' => array(  
  14. 'title' => esc_html__( 'Enhanced Link Attribution', 'google-analytics-for-wordpress' ),  
  15. 'level' => 'lite' 
  16. ),  
  17. 'files' => array(  
  18. 'title' => esc_html__( 'File Downloads', 'google-analytics-for-wordpress' ),  
  19. 'level' => 'lite' 
  20. ),  
  21. 'affiliates' => array(  
  22. 'title' => esc_html__( 'Affiliate Links', 'google-analytics-for-wordpress' ),  
  23. 'level' => 'lite' 
  24. ),  
  25. 'social' => array(  
  26. 'title' => esc_html__( 'Social', 'google-analytics-for-wordpress' ),  
  27. 'level' => 'basic',  
  28. 'comingsoon' => true 
  29. ),  
  30. 'ads' => array(  
  31. 'title' => esc_html__( 'Ads', 'google-analytics-for-wordpress' ),  
  32. 'level' => 'plus',  
  33. ),  
  34. 'forms' => array(  
  35. 'title' => esc_html__( 'Forms', 'google-analytics-for-wordpress' ),  
  36. 'level' => 'plus',  
  37. 'comingsoon' => true 
  38. ),  
  39. 'ecommerce' => array(  
  40. 'title' => esc_html__( 'eCommerce', 'google-analytics-for-wordpress' ),  
  41. 'level' => 'pro' 
  42. ),  
  43. 'media' => array(  
  44. 'title' => esc_html__( 'Media', 'google-analytics-for-wordpress' ),  
  45. 'level' => 'plus',  
  46. 'comingsoon' => true 
  47. ),  
  48. 'memberships' => array(  
  49. 'title' => esc_html__( 'Memberships', 'google-analytics-for-wordpress' ),  
  50. 'level' => 'plus',  
  51. 'comingsoon' => true 
  52. ),  
  53. 'dimensions' => array(  
  54. 'title' => esc_html__( 'Custom Dimensions', 'google-analytics-for-wordpress' ),  
  55. 'level' => 'pro',  
  56. ),  
  57. 'performance' => array(  
  58. 'title' => esc_html__( 'Performance', 'google-analytics-for-wordpress' ),  
  59. 'level' => 'basic' 
  60. ),  
  61. 'reporting' => array(  
  62. 'title' => esc_html__( 'Additional Reporting', 'google-analytics-for-wordpress' ),  
  63. 'level' => 'plus',  
  64. 'comingsoon' => true 
  65. ),  
  66. 'notifications' => array(  
  67. 'title' => esc_html__( 'Notifications', 'google-analytics-for-wordpress' ),  
  68. 'level' => 'basic',  
  69. 'comingsoon' => true 
  70. ),  
  71. 'compatibility' => array(  
  72. 'title' => esc_html__( 'Compatibility', 'google-analytics-for-wordpress' ),  
  73. 'level' => 'lite' 
  74. ),  
  75. 'permissions' => array(  
  76. 'title' => esc_html__( 'Permissions', 'google-analytics-for-wordpress' ),  
  77. 'level' => 'lite' 
  78. ),  
  79. ); 
  80. /** 
  81. * Developers Warning: MonsterInsights does not guarantee backwards compatiblity 
  82. * of tabs yet. We might add/remove/reorder/edit tabs for the first few major 
  83. * versions after 6.0 to ensure we've got the right layout for the long term.  
  84. * Changes may be done without advance warning or announcement. You've been warned.  
  85. */ 
  86. return apply_filters( 'monsterinsights_settings_tabs', $tabs );