How to create a WooCommerce plugin from scratch
array( 'id' => 'my_settings_section', 'type' => 'title', 'title' => __( 'My Settings Section', 'my-textdomain' ), )
This will output:
<h2>My Settings Section</h2> <div class="form-table">
As you can see, it opens a div with a “form-table” class, but it doesn’t close it. It’s your job to close it, after you insert your desired settings in the section. To do so, you will use the sectionend setting.
array( 'id' => 'my_settings_section', 'type' => 'sectionend', )
As an id, you give the id of the section title you want to close, in our case my_settings_section. This will output: