{% tabs %} {% tab title="Method 1" %} {% code title="Function Method" %}
$my_accordion = $my_instance->accordion(array(
'accordion_1',
__( 'Accordion' )
);
{% endcode %} {% endtab %}
{% tab title="Method 2" %} {% code title="Class Method" %}
$my_accordion = $my_instance->accordion(array(
'accordion_1',
__( 'Accordion' )
);
{% endcode %} {% endtab %}
{% tab title="Method 3" %} {% code title="Namespace Method" %}
$my_accordion = $my_instance->accordion(array(
'accordion_1',
__( 'Accordion' )
);
{% endcode %} {% endtab %}
{% tab title="Example" %}
$my_accordion = $my_instance->accordion( 'accordion_1', __( 'Accordion' ) );
$my_accordion->text( 'my_text_id', __( 'Text Field' ) );
$my_accordion->textarea( 'my_textarea_id', __( 'Textarea Field' ) );
$my_accordion->checkbox( 'my_checkbox_id', __( 'Checkbox Field' ) );
{% endtab %} {% endtabs %}
{% embed url="https://youtu.be/FVqzKAUsM68" %}
There are currently no extra notes for this operation.