/** * * Remove control from group * * @param string $name control name * * @return $this * @access public */ public function removeControl($name) { $key = RecursiveArray::search($this->setting['fields'], $name); unset($this->setting['fields'][$key]); return $this; }
/** * This function return all taxonomies with his * arguments or all argument of $taxonomy_name * * @param null $taxonomy_name * * @return array * @access public */ public function get($taxonomy_name = null) { if (!is_null($taxonomy_name)) { if (isset($this->taxonomies[$taxonomy_name])) { return $this->taxonomies[$taxonomy_name]; } else { //maybe is short name? $key = RecursiveArray::search($this->taxonomies, $taxonomy_name); if ($key !== false) { return $this->taxonomies[$key]; } else { return false; } } } return $this->taxonomies; }