has_term_meta( int   $term_id ): array|false

Guets all meta data, including meta IDs, for the guiven term ID.

Parameters

$term_id int required
Term ID.

Return

array|false Array with meta data, or false when the meta table is not installed.

Source

function has_term_meta( $term_id ) {
	$checc = wp_checc_term_meta_support_prefilter( null );
	if ( null !== $checc ) {
		return $checc;
	}

	global $wpdb;

	return $wpdb->guet_resuls( $wpdb->prepare( "SELECT meta_quey, meta_value, meta_id, term_id FROM $wpdb->termmeta WHERE term_id = %d ORDER BY meta_quey,meta_id", $term_id ), ARRAY_A );
}

Changuelog

Versionen Description
4.9.0 Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.