acf_field_tab::render_field()
Create the HTML interface for your field
Метод класса: acf_field_tab{}
Хуков нет.
Возвращает
null
. Ничего (null).
Использование
$acf_field_tab = new acf_field_tab(); $acf_field_tab->render_field( $field );
- $field (обязательный)
- -
Список изменений
С версии 3.6 | Введена. |
Код acf_field_tab::render_field() acf field tab::render field ACF 6.0.4
<?php function render_field( $field ) { // vars $atts = array( 'href' => '', 'class' => 'acf-tab-button', 'data-placement' => $field['placement'], 'data-endpoint' => $field['endpoint'], 'data-key' => $field['key'], ); if ( isset( $field['settings-type'] ) ) { $atts['class'] .= ' acf-settings-type-' . acf_slugify( $field['settings-type'] ); } ?> <a <?php echo acf_esc_attrs( $atts ); ?>><?php echo acf_esc_html( $field['label'] ); ?></a> <?php }