Automattic\WooCommerce\Internal\Admin\ProductReviews
ReviewsListTable::get_filter_product_arguments()
Gets the post_id argument based on the current request.
Метод класса: ReviewsListTable{}
Хуков нет.
Возвращает
Массив
.
Использование
$ReviewsListTable = new ReviewsListTable(); $ReviewsListTable->get_filter_product_arguments() : array;
Код ReviewsListTable::get_filter_product_arguments() ReviewsListTable::get filter product arguments WC 9.2.3
public function get_filter_product_arguments() : array { $args = []; if ( $this->current_product_for_reviews instanceof WC_Product ) { $args['post_id'] = $this->current_product_for_reviews->get_id(); } return $args; }