wpseek.com
Bazujące na WordPress narzędzie wyszukiwania dla deweloperów i twórców motywów.



is_term_publicly_viewable › WordPress Function

Od6.1.0
Przestarzałyn/a
is_term_publicly_viewable ( $term )
Parametry:
  • (int|WP_Term) $term Term ID or term object.
    Wymagane: Tak
Powrót:
  • (bool) Whether the term is publicly viewable.
Zdefiniowane na:
Codex:

Determines whether a term is publicly viewable.

A term is considered publicly viewable if its taxonomy is viewable.


Źródło

function is_term_publicly_viewable( $term ) {
	$term = get_term( $term );

	if ( ! $term ) {
		return false;
	}

	return is_taxonomy_viewable( $term->taxonomy );
}