sfw_maybe_get_entity_item_by_context

Description

Tries to get an Entity by the current WordPress context

this function primarily calls the filter. functionality is hooked to this filter to allow plugin authors to work with priorities

Since: 1.0.0

Code

<?php function sfw_maybe_get_entity_item_by_context( $entity ){ 
	 … 
 } ?>

Parameter

$entity
(mixed)

Return

(false|object) false or Item

File

core/includes/functions-entity-getter.php