MasterPress 1.1.4 is now available. This release contains an important compatibility fix for WordPress 4.5 to allow correct detection of the taxonomy term editing screen. Without this fix, any custom fields you have attached to custom taxonomies will not be shown at all in the editing form. Note also that MasterPress will still detect the edit screen correctly in…
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.