getBloginfo('version'), '4.5.0', '>=')) { return WPFunctions::get()->getTerms($args); } else { $taxonomy = $args['taxonomy']; unset($args['taxonomy']); return WPFunctions::get()->getTerms($taxonomy, $args); } } static function getTypes($args = array(), $output = 'names', $operator = 'and') { $defaults = array( 'exclude_from_search' => false ); $args = array_merge($defaults, $args); return WPFunctions::get()->getPostTypes($args, $output, $operator); } }