Automattic\WooCommerce\Internal\Admin\Orders

ListTable::set_search_args()privateWC 1.0

Implements order search.

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

No Hooks.

Return

null. Nothing.

Usage

// private - for code of main (parent) class only
$result = $this->set_search_args(): void;

Код ListTable::set_search_args() WC 7.1.0

private function set_search_args(): void {
	$search_term = trim( sanitize_text_field( wp_unslash( $_REQUEST['s'] ?? '' ) ) );

	if ( ! empty( $search_term ) ) {
		$this->order_query_args['s'] = $search_term;
		$this->has_filter            = true;
	}
}