/**
  * Install additional default options for parsing after a specific option ID
  * Extensions would use this
  *
  * NOTE: External code should not call this function any earlier than the WordPress 'init'
  *       action hook in order for Jigoshop language translations to function properly
  *
  * @param	string $insert_after_id	The name of the ID  to install -after-
  * @param	array	$options The array of options to install
  * @since	1.3
  */
 public function install_external_options_after_id($insert_after_id, $options)
 {
     // only proceed with function if we have options to add
     if (empty($options)) {
         return;
     }
     if (empty($insert_after_id)) {
         return;
     }
     $our_options = $this->get_default_options();
     $first_index = -1;
     foreach ($our_options as $index => $option) {
         if (!isset($option['id']) || $option['id'] != $insert_after_id) {
             continue;
         }
         $first_index = $index;
         break;
     }
     /*** get the start of the array ***/
     $start = array_slice($our_options, 0, $first_index + 1);
     /*** get the end of the array ***/
     $end = array_slice($our_options, $first_index + 1);
     /*** add the new elements to the array ***/
     foreach ($options as $option) {
         if (isset($option['id']) && !$this->exists($option['id'])) {
             $this->add($option['id'], isset($option['std']) ? $option['std'] : '');
         }
         $start[] = $option;
     }
     /*** glue them back together ***/
     self::$default_options = array_merge($start, $end);
 }