Automattic\WooCommerce\Internal\Admin\ProductReviews
ReviewsListTable::get_search_arguments
Gets the search argument based on the current request.
Метод класса: ReviewsListTable{}
Хуков нет.
Возвращает
Массив.
Использование
// protected - в коде основоного (родительского) или дочернего класса $result = $this->get_search_arguments() : array;
Код ReviewsListTable::get_search_arguments() ReviewsListTable::get search arguments WC 10.5.1
protected function get_search_arguments() : array {
$args = [];
if ( ! empty( $_REQUEST['s'] ) ) {
$args['search'] = sanitize_text_field( wp_unslash( $_REQUEST['s'] ) );
}
return $args;
}