Echo a field.
This function echos the field content. Must be used in the loop of fields obtained using beans_get_fields().
beans_field( array $field )
Return: (void)
Parameters
Name | Type | Required | Default | Description |
---|---|---|---|---|
$field | array | true | - | Array of data obtained using beans_get_fields(). |
Source
function beans_field( $field ) {
if ( ! class_exists( '_Beans_Fields' ) ) {
return;
}
$class = new _Beans_Fields();
$class->field_content( $field );
}