public static function instance($options = array()) { if (is_null(self::$instance) && CS_ACTIVE_TAXONOMY) { self::$instance = new self($options); } return self::$instance; }
<?php if (!defined('ABSPATH')) { die; } // Cannot access pages directly. // =============================================================================================== // ----------------------------------------------------------------------------------------------- // TAXONOMY OPTIONS // ----------------------------------------------------------------------------------------------- // =============================================================================================== $options = array(); // ----------------------------------------- // Taxonomy Options - // ----------------------------------------- $options[] = array('id' => '_custom_taxonomy_options', 'taxonomy' => 'taxonomy_name', 'fields' => array(array('id' => 'section_1_text', 'type' => 'text', 'title' => 'Text Field'), array('id' => 'section_1_textarea', 'type' => 'textarea', 'title' => 'Textarea Field'))); $options[] = array('id' => '_custom_taxonomy_options', 'taxonomy' => 'another_taxonomy_name', 'fields' => array(array('id' => 'section_1_text', 'type' => 'text', 'title' => 'Text Field'))); CSFramework_Taxonomy::instance($options);