original_string: public function get_terms( $taxonomy = '', $args = array() ) {
  		if ( isset( $this->{$taxonomy} ) && empty( $args ) ) {
  			return $this->{$taxonomy};
  		} else {
  			$name = $taxonomy . '_' . md5( json_encode( $args ) );
  			if ( isset( $this->{$name} ) ) {
  				return $this->{$name};
  			}
  			$data          = \wp_get_post_terms( $this->id(), $taxonomy, $args );
  			$this->{$name} = $data;
  			return $data;
  		}
  	}
code: public function get_terms( $taxonomy = '', $args = array() ) {
  		if ( isset( $this->{$taxonomy} ) && empty( $args ) ) {
  			return $this->{$taxonomy};
  		} else {
  			$name = $taxonomy . '_' . md5( json_encode( $args ) );
  			if ( isset( $this->{$name} ) ) {
  				return $this->{$name};
  			}
  			$data          = \wp_get_post_terms( $this->id(), $taxonomy, $args );
  			$this->{$name} = $data;
  			return $data;
  		}
  	}
code_tokens: public function get_terms ( $ taxonomy = '' , $ args = array ( ) ) { if ( isset ( $ this -> { $ taxonomy } ) && empty ( $ args ) ) { return $ this -> { $ taxonomy } ; } else { $ name = $ taxonomy . '_' . md5 ( json_encode ( $ args ) ) ; if ( isset ( $ this -> { $ name } ) ) { return $ this -> { $ name } ; } $ data = \ wp_get_post_terms ( $ this -> id ( ) , $ taxonomy , $ args ) ; $ this -> { $ name } = $ data ; return $ data ; } }
docstring: Returns All Terms From Post.
  
  @param string $taxonomy
  @param array  $args
  
  @return array|\WP_Error
docstring_tokens: Returns All Terms From Post .