Automattic\WooCommerce\Internal\Admin\ProductReviews
ReviewsListTable::get_search_arguments()
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() ReviewsListTable::get search arguments code WC 9.6.0
protected function get_search_arguments() : array { $args = []; if ( ! empty( $_REQUEST['s'] ) ) { $args['search'] = sanitize_text_field( wp_unslash( $_REQUEST['s'] ) ); } return $args; }