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
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
PUM_Utils_Fields::flatten_fields_array( $tabs )
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
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
Parameters Parameters
- $tabs
-
(Required)
Return Return
(array)
Source Source
File: classes/Utils/Fields.php
public static function flatten_fields_array( $tabs ) { $fields = array(); foreach ( $tabs as $tab_id => $tab_sections ) { if ( self::is_field( $tab_sections ) ) { $fields[ $tab_id ] = $tab_sections; continue; } else { foreach ( $tab_sections as $section_id => $section_fields ) { if ( self::is_field( $tab_sections ) ) { $fields[ $section_id ] = $section_fields; continue; } foreach ( $section_fields as $field_id => $field ) { $fields[ $field_id ] = $field; continue; } } } } return $fields; }
Expand full source code Collapse full source code View on Trac