It was brought to our attention that MasterPress would give a tonne of warnings and deprecation notices when used with PHP 7.4 – this update addresses those.
WOOF :: object_type()
- String A key representing the current object type.
Returns a string representing the type of the the current WordPress object, which is decided by analysing the current template being accessed. Specifically (templates are considered in the order that follows):
- Returns “taxonomy” if either of is_tax() or is_category() or is_tag() are true.
- Returns “user” if is_author() is true.
- Returns “post” if either of is_archive() or is_single() or is_page() are true.
- Returns “site” otherwise
This method is generally intended for internal use, but it may provide useful in template code.