public function glossaryTooltip( $glossary_term_id, $content ) {

		global $id; // This is the Post ID, [@see WP_Query::setup_postdata, ...]

		// Get the glossary post object the glossary term ID belongs to
		$glossary_term = get_post( $glossary_term_id );
		if ( ! $glossary_term ) {
			return $content . 'no post';
		}
		if ( $glossary_term->post_status === 'trash' ) {
			return $content;
		}

		$html = '<button class="glossary-term" aria-describedby="' . $id . '-' . $glossary_term_id . '">' . $content . '</button>';

		return $html;
	}
public function glossaryTooltip( $glossary_term_id, $content ) {

		global $id; // This is the Post ID, [@see WP_Query::setup_postdata, ...]

		// Get the glossary post object the glossary term ID belongs to
		$glossary_term = get_post( $glossary_term_id );
		if ( ! $glossary_term ) {
			return $content . 'no post';
		}
		if ( $glossary_term->post_status === 'trash' ) {
			return $content;
		}

		$html = '<button class="glossary-term" aria-describedby="' . $id . '-' . $glossary_term_id . '">' . $content . '</button>';

		return $html;
	}
public function glossaryTooltip ( $ glossary_term_id , $ content ) { global $ id ; // This is the Post ID, [@see WP_Query::setup_postdata, ...] // Get the glossary post object the glossary term ID belongs to $ glossary_term = get_post ( $ glossary_term_id ) ; if ( ! $ glossary_term ) { return $ content . 'no post' ; } if ( $ glossary_term -> post_status === 'trash' ) { return $ content ; } $ html = '<button class="glossary-term" aria-describedby="' . $ id . '-' . $ glossary_term_id . '">' . $ content . '</button>' ; return $ html ; }
Returns the tooltip markup and content

@since 5.5.0

@param int $glossary_term_id
@param string $content

@return string
Returns the tooltip markup and content