monsterinsights_save_general_settings_page

Saves Settings.

Description

(null) monsterinsights_save_general_settings_page(); 

Returns (null)

Return early if not fixing the broken migration


Usage

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

Defined (1)

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

/includes/admin/pages/settings.php  
  1. function monsterinsights_save_general_settings_page() { 
  2.  
  3. return; 
  4.  
  5. // Check if user pressed the 'Update' button and nonce is valid 
  6. if ( ! isset( $_POST['monsterinsights-settings-submit'] ) ) { 
  7. return; 
  8.  
  9. if ( ! wp_verify_nonce( $_POST['monsterinsights-settings-nonce'], 'monsterinsights-settings-nonce' ) ) { 
  10. return; 
  11.  
  12. if ( ! current_user_can( 'monsterinsights_save_settings' ) ) { 
  13. return; 
  14.  
  15. if ( ! empty( $_POST['monsterinsights_settings_tab'] ) && $_POST['monsterinsights_settings_tab'] === 'general' ) { 
  16. /**  
  17. * Developer Alert: 
  18. * Per the README, this is considered an internal hook and should 
  19. * not be used by other developers. This hook's behavior may be modified 
  20. * or the hook may be removed at any time, without warning. 
  21. */