Since: 2.0
exists
Whether a Pod item exists or not when using fetch() or construct with an ID or slug
Function Definition
Returns
(bool)
Examples
Check if the item exists
<?php
$slug = 'my-item-slug';
$pod = pods( 'your_pod', $slug );
if ( $pod->exists() ) {
// the item exists
}
else {
// the item does not exist
}