Gets all columns for the export.
Description
See also
Parameters
- $submission_columns
-
(array) (Required) Submission columns definition.
- $element_columns
-
(array) (Required) Element columns definition for submission values.
Return
(array) Associative columns array of <code>$column_slug => $column_label</code> pairs.
Source
File: src/components/submission-export.php
protected function get_columns( $submission_columns, $element_columns ) { $columns = array(); foreach ( $submission_columns as $slug => $data ) { $columns[ $slug ] = $data['label']; } foreach ( $element_columns as $element_id => $data ) { $columns = array_merge( $columns, $data['columns'] ); } return $columns; }
Changelog
Version | Description |
---|---|
1.0.0 | Introduced. |