A synonym for WOOF::is_a, to check if the current WordPress WOOF::object is of the given type.
Type has different meanings depending on what the current object is:
- If the object is a post, type would be the name of a post type
- If the object is a term, type would be the name of a taxonomy
- If the object is a user, type would be a user role
This method would be useful to display different things in a common include file, based on the current object, for example.
Parameters:
-
The name of the type to check for (see method description for more details)