sfw_is_valid_item

Description

Checks if an item is valid for given Entity

Since: 1.0.0

Code

<?php function sfw_is_valid_item( $mixed_entity, $item ){ 
	 … 
 } ?>

Parameter

$mixed_entity
(string|SFW_Entity) An Entity name or Entity Instance
$item
(WP_Post|WP_Term)

Return

(boolean)

File

core/includes/functions-entity.php