original_string: public static function _ajax_menu_icons_update_settings() {
  		check_ajax_referer( self::UPDATE_KEY, self::UPDATE_KEY );
  
  		if ( empty( $_POST['menu-icons']['settings'] ) ) {
  			wp_send_json_error();
  		}
  
  		$redirect_url = self::_update_settings( $_POST['menu-icons']['settings'] ); // Input var okay.
  		wp_send_json_success( array( 'redirectUrl' => $redirect_url ) );
  	}
code: public static function _ajax_menu_icons_update_settings() {
  		check_ajax_referer( self::UPDATE_KEY, self::UPDATE_KEY );
  
  		if ( empty( $_POST['menu-icons']['settings'] ) ) {
  			wp_send_json_error();
  		}
  
  		$redirect_url = self::_update_settings( $_POST['menu-icons']['settings'] ); // Input var okay.
  		wp_send_json_success( array( 'redirectUrl' => $redirect_url ) );
  	}
code_tokens: public static function _ajax_menu_icons_update_settings ( ) { check_ajax_referer ( self :: UPDATE_KEY , self :: UPDATE_KEY ) ; if ( empty ( $ _POST [ 'menu-icons' ] [ 'settings' ] ) ) { wp_send_json_error ( ) ; } $ redirect_url = self :: _update_settings ( $ _POST [ 'menu-icons' ] [ 'settings' ] ) ; // Input var okay. wp_send_json_success ( array ( 'redirectUrl' => $ redirect_url ) ) ; }
docstring: Update settings via ajax
  
  @since   0.7.0
  @wp_hook action wp_ajax_menu_icons_update_settings
docstring_tokens: Update settings via ajax