How to get values from repeatable sections
-
I am using the latest version of APF and I have a repeatable section. This section contains a number field and a textarea field.
How do I get and use these repeatable sections?
Thanks
Benpublic function load_wc_groups_email( $oAdminPage ) { // load_{page slug} $this->addSettingSections( array( 'section_id' => 'client_email_custom_message', 'title' => 'Client Email Custom Message', 'repeatable' => true, ) ); $this->addSettingFields( 'client_email_custom_message', // section id array( 'field_id' => 'number', 'title' => __( 'Customer Group ID', 'admin-page-framework-loader' ), 'type' => 'number', ), array( 'field_id' => 'textarea', 'title' => __( 'Email Text', 'admin-page-framework-loader' ), 'type' => 'textarea', 'rich' => true, 'default' => '<h2 id="h2thanks">Delivery Timeline</h2><p class="pthanks">Thank you for making this purchase!</p><p class="pthanks">Estimated delivery times are 3-5 days.</p>', ), array( 'field_id' => '_submit', 'type' => 'submit', 'save' => false, 'label' => 'Save', ) ); }
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘How to get values from repeatable sections’ is closed to new replies.