public static function debug($class, $mangle_name = false) { self::$mangle_name = $mangle_name; echo "<pre>"; self::_do(array(__CLASS__, '_print'), $class); echo "</pre>"; }
margin-top: 1em; } .taxonomy-drilldown-checkboxes li, .taxonomy-drilldown-dropdowns li { list-style: none; } .taxonomy-drilldown-dropdowns select { display: block; } </style> <?php } } scbHooks::add('QMT_Hooks'); class QMT_Terms { private static $filtered_ids; // Get a list of all the terms attached to all the posts in the current query public function get($tax) { self::set_filtered_ids(); if (empty(self::$filtered_ids)) { return array(); } $raw_terms = wp_get_object_terms(self::$filtered_ids, $tax); // distinct terms $terms = array(); foreach ($raw_terms as $term) { $terms[$term->term_id] = $term;