protected function get_terms( $taxonomy ) {
		// Prepare arguments for get_terms.
		$query = $this->get_setting( 'query' );
		$args  = array_merge( $query, [
			'fields' => 'id=>name'
		] );

		$terms = [];
		if ( taxonomy_exists( $taxonomy ) ) {
			$terms = get_terms( $taxonomy, $args );
		}

		return $terms;
	}
protected function get_terms( $taxonomy ) {
		// Prepare arguments for get_terms.
		$query = $this->get_setting( 'query' );
		$args  = array_merge( $query, [
			'fields' => 'id=>name'
		] );

		$terms = [];
		if ( taxonomy_exists( $taxonomy ) ) {
			$terms = get_terms( $taxonomy, $args );
		}

		return $terms;
	}
protected function get_terms ( $ taxonomy ) { // Prepare arguments for get_terms. $ query = $ this -> get_setting ( 'query' ) ; $ args = array_merge ( $ query , [ 'fields' => 'id=>name' ] ) ; $ terms = [ ] ; if ( taxonomy_exists ( $ taxonomy ) ) { $ terms = get_terms ( $ taxonomy , $ args ) ; } return $ terms ; }
Get terms for specified taxonomy.

@param  string $taxonomy

@return array
Get terms for specified taxonomy .