Renders the list page form.
Description
See also
Source
File: src/db-objects/submissions/submissions-list-page.php
protected function render_form() { /** * Fires before the submissions admin list table is printed. * * @since 1.0.0 * * @param Submission_Manager $submissions Submission manager instance. */ do_action( "{$this->model_manager->get_prefix()}before_submissions_list", $this->model_manager ); $this->list_table->views(); ?> <form id="<?php echo $this->model_manager->get_plural_slug(); ?>-filter" method="get"> <?php $this->list_table->search_box( $this->model_manager->get_message( 'list_page_search_items' ), $this->model_manager->get_singular_slug() ); ?> <?php if ( $this->parent_slug && false !== strpos( $this->parent_slug, '?' ) ) { $query_string = wp_parse_url( self_admin_url( $this->parent_slug ), PHP_URL_QUERY ); if ( $query_string ) { wp_parse_str( $query_string, $query_vars ); foreach ( $query_vars as $key => $value ) { ?> <input type="hidden" name="<?php echo esc_attr( $key ); ?>" value="<?php echo esc_attr( $value ); ?>" /> <?php } } } ?> <input type="hidden" name="page" value="<?php echo $this->slug; ?>" /> <?php if ( ! empty( $_GET['form_id'] ) ) : ?> <input type="hidden" name="form_id" value="<?php echo (int) $_GET['form_id']; ?>" /> <?php endif; ?> <?php if ( method_exists( $this->model_manager, 'get_author_property' ) && ( $author_property = $this->model_manager->get_author_property() ) && ! empty( $_REQUEST[ $author_property ] ) ) : ?> <input type="hidden" name="<?php echo $author_property; ?>" value="<?php echo esc_attr( $_REQUEST[ $author_property ] ); ?>" /> <?php endif; ?> <?php $this->list_table->display(); ?> </form> <?php /** * Fires after the submissions admin list table has been printed. * * @since 1.0.0 * * @param Submission_Manager $submissions Submission manager instance. */ do_action( "{$this->model_manager->get_prefix()}after_submissions_list", $this->model_manager ); }
Changelog
Version | Description |
---|---|
1.0.0 | Introduced. |