sfw_maybe_get_entity_item
Description
try to guess an Entity Item by optional $value
if $mixed has any value other than false we explicitly guess by this value. this is to prevent false positives by context guessing
Since: 1.0.0
Code
<?php function sfw_maybe_get_entity_item( $entity, $mixed = false ){
…
} ?>
Parameter
- $entity
- (mixed) An Entity
- $mixed
- (mixed) Any value that identifies an Entity Item or false for automatic Entity guessing
Default: false