aioseop_ajax_save_settings

The All In One SEO Pack aioseop ajax save settings function.

Description

aioseop_ajax_save_settings(); 

Usage

  1. if ( !function_exists( 'aioseop_ajax_save_settings' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'all-in-one-seo-pack/inc/aioseop_functions.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = aioseop_ajax_save_settings(); 
  7.  

Defined (1)

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

/inc/aioseop_functions.php  
  1. function aioseop_ajax_save_settings() { 
  2. $options = Array(); 
  3. parse_str( $_POST['options'], $options ); 
  4. $_POST = $options; 
  5. $_POST['action'] = 'aiosp_update_module'; 
  6. global $aiosp, $aioseop_modules; 
  7. $aiosp->admin_menu(); 
  8. $module = $aioseop_modules->return_module( $_POST['module'] ); 
  9. unset( $_POST['module'] ); 
  10. if ( empty( $_POST['location'] ) ) { 
  11. $_POST['location'] = null; 
  12. $_POST['Submit'] = 'ajax'; 
  13. $module->add_page_hooks(); 
  14. $output = $module->handle_settings_updates( $_POST['location'] ); 
  15.  
  16. if ( AIOSEOPPRO ) { 
  17. $output = '<div id="aioseop_settings_header"><div id="message" class="updated fade"><p>' . $output . '</p></div></div><style>body.all-in-one-seo_page_all-in-one-seo-pack-pro-aioseop_feature_manager .aioseop_settings_left { margin-top: 45px !important; }</style>'; 
  18. } else { 
  19. $output = '<div id="aioseop_settings_header"><div id="message" class="updated fade"><p>' . $output . '</p></div></div><style>body.all-in-one-seo_page_all-in-one-seo-pack-aioseop_feature_manager .aioseop_settings_left { margin-top: 45px !important; }</style>'; 
  20.  
  21. die( sprintf( AIOSEOP_AJAX_MSG_TMPL, $output ) );