/** * Creates a subsection */ public function create_subsection($subsection) { $args = array('title' => isset($subsection['label']) ? $subsection['label'] : '', 'id' => $subsection['id'], 'subsection' => true, 'desc' => isset($subsection['description']) ? $subsection['description'] : ''); if (class_exists('AvadaRedux')) { AvadaRedux::setSection($this->key, $args); } }
public static function setSections($opt_name = '', $sections = array()) { self::check_opt_name($opt_name); if (!empty($sections)) { foreach ($sections as $section) { AvadaRedux::setSection($opt_name, $section); } } }