ActionScheduler_Abstract_ListTable::display_table()protectedWC 1.0

Renders the table list, we override the original class to render the table inside a form and to render any needed HTML (like the search box). By doing so the callee of a function can simple forget about any extra HTML.

Method of the class: ActionScheduler_Abstract_ListTable{}

No Hooks.

Return

null. Nothing (null).

Usage

// protected - for code of main (parent) or child class
$result = $this->display_table();

ActionScheduler_Abstract_ListTable::display_table() code WC 9.5.1

protected function display_table() {
	echo '<form id="' . esc_attr( $this->_args['plural'] ) . '-filter" method="get">';
	foreach ( $this->get_request_query_args_to_persist() as $arg ) {
		$arg_value = isset( $_GET[ $arg ] ) ? sanitize_text_field( wp_unslash( $_GET[ $arg ] ) ) : ''; // phpcs:ignore WordPress.Security.NonceVerification.Recommended
		if ( ! $arg_value ) {
			continue;
		}

		echo '<input type="hidden" name="' . esc_attr( $arg ) . '" value="' . esc_attr( $arg_value ) . '" />';
	}

	if ( ! empty( $this->search_by ) ) {
		echo $this->search_box( $this->get_search_box_button_text(), 'plugin' ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
	}
	parent::display();
	echo '</form>';
}