Ejemplo n.º 1
0
function acf_field_type_exists($field_type)
{
    // vars
    $label = acf_get_field_type_label($field_type);
    // return true if label exists
    if ($label !== '') {
        return true;
    }
    // return
    return false;
}
Ejemplo n.º 2
0
" href="#"><?php 
_e("Delete", 'acf');
?>
</a>
				</div>
			</li>
			<li class="li-field-name"><?php 
echo $field['name'];
?>
</li>
			<li class="li-field-type">
				<?php 
if (acf_field_type_exists($field['type'])) {
    ?>
					<?php 
    echo acf_get_field_type_label($field['type']);
    ?>
				<?php 
} else {
    ?>
					<b><?php 
    _e('Error', 'acf');
    ?>
</b> <?php 
    _e('Field type does not exist', 'acf');
    ?>
				<?php 
}
?>
			</li>	
		</ul>