/** * Fields content. */ public function fields($tag) { beans_remove_action('beans_field_label'); beans_modify_action_hook('beans_field_description', 'beans_field_wrap_after_markup'); beans_modify_markup('beans_field_description', 'p'); beans_add_attribute('beans_field_description', 'class', 'description'); foreach (beans_get_fields('term_meta', $this->section) as $field) { echo '<tr class="form-field">'; echo '<th scope="row">'; beans_field_label($field); echo '</th>'; echo '<td>'; beans_field($field); echo '</td>'; echo '</tr>'; } }
/** * Metabox content. */ public function metabox_content($post) { foreach (beans_get_fields('post_meta', $this->section) as $field) { beans_field($field); } }
/** * Field content. */ public function render_content() { beans_field($this->beans_field); }
/** * Metabox content. */ public function metabox_content() { foreach (beans_get_fields('option', $this->section) as $field) { beans_field($field); } }