MasterPress 1.3.1 is a compatibility release for PHP 8 and WordPress 5.7. It still remains backwards compatible with older PHP versions.
WOOF_Term :: ancestors()
Retrieves a collection of ancestors for this term from lowest to highest in the hierarchy
This will only return meaningful results when the term is based on a hierarchical taxonomy.