Warning: Array to string conversion in /mnt/data/home/502433.cloudwaysapps.com/rhbymdevka/public_html/wp-content/themes/wporg-developer/inc/template-tags.php on line 808
Warning: foreach() argument must be of type array|object, string given in /mnt/data/home/502433.cloudwaysapps.com/rhbymdevka/public_html/wp-content/themes/wporg-developer/inc/template-tags.php on line 813
PUM_Utils_Fields::render_form_fields( PUM_Form $form )
Description Description
Warning: Array to string conversion in /mnt/data/home/502433.cloudwaysapps.com/rhbymdevka/public_html/wp-content/themes/wporg-developer/inc/template-tags.php on line 808
Warning: foreach() argument must be of type array|object, string given in /mnt/data/home/502433.cloudwaysapps.com/rhbymdevka/public_html/wp-content/themes/wporg-developer/inc/template-tags.php on line 813
Parameters Parameters
- $form
-
(Required)
Source Source
File: classes/Utils/Fields.php
public static function render_form_fields( $form ) { $tabs = $form->get_tabs(); $sections = $form->get_sections(); $fields = $form->get_fields(); if ( $form->has_tabs() ) { if ( $form->has_sections() ) { foreach ( $tabs as $tab_id => $tab_label ) { foreach ( $sections as $section_id => $section_label ) { foreach ( $fields[ $tab_id ][ $section_id ] as $field_id => $field_args ) { static::render_field( $field_args ); } } } } else { foreach ( $tabs as $tab_id => $label ) { foreach ( $fields[ $tab_id ] as $field_id => $field_args ) { static::render_field( $field_args ); } } } } else { foreach ( $fields as $field_id => $field_args ) { static::render_field( $field_args ); } } }
Expand full source code Collapse full source code View on Trac