Fields (59)

Code

Method 1
Method 2
Method 3
Example
Function Method
1
$my_accordion = $my_instance->accordion(array(
2
'accordion_1',
3
__( 'Accordion' )
4
);
Copied!
Class Method
1
$my_accordion = $my_instance->accordion(array(
2
'accordion_1',
3
__( 'Accordion' )
4
);
Copied!
Namespace Method
1
$my_accordion = $my_instance->accordion(array(
2
'accordion_1',
3
__( 'Accordion' )
4
);
Copied!
1
$my_accordion = $my_instance->accordion( 'accordion_1', __( 'Accordion' ) );
2
3
$my_accordion->text( 'my_text_id', __( 'Text Field' ) );
4
$my_accordion->textarea( 'my_textarea_id', __( 'Textarea Field' ) );
5
$my_accordion->checkbox( 'my_checkbox_id', __( 'Checkbox Field' ) );
Copied!

Output

Tutorial

Project Usage

Notes

There are currently no extra notes for this operation.
Last modified 1yr ago
Export as PDF
Copy link