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.

Метод класса: ActionScheduler_Abstract_ListTable{}

Хуков нет.

Возвращает

null. Ничего (null).

Использование

// protected - в коде основоного (родительского) или дочернего класса
$result = $this->display_table();

Код ActionScheduler_Abstract_ListTable::display_table() WC 8.7.0

protected function display_table() {
	echo '<form id="' . esc_attr( $this->_args['plural'] ) . '-filter" method="get">';
	foreach ( $_GET as $key => $value ) { // phpcs:ignore WordPress.Security.NonceVerification.Recommended
		if ( '_' === $key[0] || 'paged' === $key || 'ID' === $key ) {
			continue;
		}
		echo '<input type="hidden" name="' . esc_attr( $key ) . '" value="' . esc_attr( $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>';
}