Automattic\WooCommerce\Internal\Admin\ProductReviews

ReviewsListTable::get_search_arguments()protectedWC 1.0

Gets the search argument based on the current request.

Method of the class: ReviewsListTable{}

No Hooks.

Return

Array.

Usage

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

ReviewsListTable::get_search_arguments() code WC 7.1.1

protected function get_search_arguments() : array {
	$args = [];

	if ( ! empty( $_REQUEST['s'] ) ) {
		$args['search'] = sanitize_text_field( wp_unslash( $_REQUEST['s'] ) );
	}

	return $args;
}