i am looking to get terms from some custom taxonomies , which i produced theme by Custom Publish Type UI (See plugin page). when im by using this code :

$args = array(
     'hide_empty' => 1,
      );
$terms = get_terms($taxonomy, $args);

return this error :

WP_Error Object ( [errors] => Array ( [invalid_taxonomy] => Array ( [0] => Invalid Taxonomy ) ) [error_data] => Array ( ) ) 

some tends to make me happy

Gracies... )