Adds tabs, sections and fields to the submission edit page.
Description
This method should call the methods add_tabs()
, add_section()
and add_field()
to populate the page.
See also
Source
File: src/db-objects/submissions/submission-edit-page.php
protected function add_page_content() { $tabs = $this->get_tabs(); foreach ( $tabs as $slug => $args ) { $this->add_tab( $slug, $args ); } $sections = $this->get_sections(); foreach ( $sections as $slug => $args ) { $this->add_section( $slug, $args ); } $fields = $this->get_fields(); foreach ( $fields as $slug => $args ) { $type = 'text'; if ( isset( $args['type'] ) ) { $type = $args['type']; unset( $args['type'] ); } $this->add_field( $slug, $type, $args ); } }
Changelog
Version | Description |
---|---|
1.0.0 | Introduced. |