Automattic\WooCommerce\Internal\Admin\Orders
ListTable::print_hidden_form_fields()
Outputs hidden fields used to retain state when filtering.
{} Это метод класса: ListTable{}
Хуков нет.
Возвращает
null
. Ничего.
Использование
// private - только в коде основоного (родительского) класса $result = $this->print_hidden_form_fields(): void;
Код ListTable::print_hidden_form_fields() ListTable::print hidden form fields WC 6.8.0
private function print_hidden_form_fields(): void { echo '<input type="hidden" name="page" value="wc-orders" >'; $state_params = array( '_customer_user', 'm', 'paged', 'status', ); foreach ( $state_params as $param ) { if ( ! isset( $_GET[ $param ] ) ) { continue; } echo '<input type="hidden" name="status" value="' . esc_attr( sanitize_text_field( wp_unslash( $_GET[ $param ] ) ) ) . '" >'; } }