Functions/item has type

item_has_type will check to see if an item is saved as a particular item type. Returns true or false.

Usage

<?php
    item_has_type($name, $item);
?>

Arguments

  • name - (String) The name of an Item Type
  • item - An item object. Defaults to the current item.

Examples

<?php item_has_type('Still Image'); ?>