'setting_id', // Unique id * 'title' => 'My Setting', // Title or label for the setting * 'description' => 'Description', // Help text description * 'taxonomies' => array(); // Array of taxonomies to fetch (required) * 'blank_option' => true, // Whether or not to show a blank option * 'args' => array(); // Arguments to pass to WordPress's get_terms() function * ); * type * * @since 1.0 * @package Simple Admin Pages */ class sapAdminPageSettingSelectTaxonomy_2_7_4 extends sapAdminPageSetting_2_7_4 { public $sanitize_callback = 'intval'; // Whether or not to display a blank option public $blank_option = true; // Arrays of taxonomies to fetch (required) public $taxonomies; /** * Array of options accepted by get_terms() * See: http://codex.wordpress.org/Function_Reference/get_terms */ public $args = array(); /** * Display this setting * @since 1.0 */ public function display_setting() { $this->args['taxonomy'] = $this->taxonomies; $terms = get_terms( $this->args ); ?>
print_conditional_data(); ?>> display_disabled(); ?>
display_description(); } }