MasterPress 1.3.1 is a compatibility release for PHP 8 and WordPress 5.7. It still remains backwards compatible with older PHP versions.
Returns the depth of this term in the hierarchy, where 1 is the top level, 2 is the 2nd level, and so on.
Boolean $nocache = false
If true, the depth will be refetched by analysing the ancestors.