/** * * @param type $terms * @param type $taxonomies * @param type $args * @return type */ public function get_terms($terms, $taxonomies, $args) { if (is_array($terms)) { foreach ($terms as $i => $term) { if (is_object($term)) { if (mvb_Model_AccessControl::checkCategoryAccess($term->term_id)) { unset($terms[$i]); } } } } return $terms; }