is_term_publicly_viewable( int|WP_Term $term ): bool

In this article

Determines whether a term is publicly viewable.

Description

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

Parameters

$termint|WP_Termrequired
Term ID or term object.

Return

bool Whether the term is publicly viewable.

Source


/**
 * Determines whether a term is publicly viewable.
 *
 * A term is considered publicly viewable if its taxonomy is viewable.
 *
 * @since 6.1.0
 *
 * @param int|WP_Term $term Term ID or term object.

Changelog

VersionDescription
6.1.0Introduced.

User Contributed Notes

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