public function getGlossaryTermsListbox( $reset = false ) {
		$values[] = [
			'text' => '-- ' . __( 'Select', 'pressbooks' ) . ' --',
			'value' => '',
		];
		$terms = $this->getGlossaryTerms( $reset );
		foreach ( $terms as $title => $term ) {
			$values[] = [
				'text' => \Pressbooks\Sanitize\decode( $title ),
				'value' => (int) $term['id'],
			];
		}
		return wp_json_encode( $values );
	}
public function getGlossaryTermsListbox( $reset = false ) {
		$values[] = [
			'text' => '-- ' . __( 'Select', 'pressbooks' ) . ' --',
			'value' => '',
		];
		$terms = $this->getGlossaryTerms( $reset );
		foreach ( $terms as $title => $term ) {
			$values[] = [
				'text' => \Pressbooks\Sanitize\decode( $title ),
				'value' => (int) $term['id'],
			];
		}
		return wp_json_encode( $values );
	}
public function getGlossaryTermsListbox ( $ reset = false ) { $ values [ ] = [ 'text' => '-- ' . __ ( 'Select' , 'pressbooks' ) . ' --' , 'value' => '' , ] ; $ terms = $ this -> getGlossaryTerms ( $ reset ) ; foreach ( $ terms as $ title => $ term ) { $ values [ ] = [ 'text' => \ Pressbooks \ Sanitize \ decode ( $ title ) , 'value' => ( int ) $ term [ 'id' ] , ] ; } return wp_json_encode ( $ values ) ; }
For tiny mce
Get both published and private terms

@param bool $reset (optional, default is false)

@return string
For tiny mce Get both published and private terms