Automattic\WooCommerce\Internal\Admin\ProductReviews

ReviewsListTable::get_filter_product_arguments()publicWC 1.0

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() WC 6.8.0

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;
}