Automattic\WooCommerce\Internal\Admin\ProductReviews

ReviewsListTable::get_filter_product_arguments()publicWC 1.0

Gets the post_id argument based on the current request.

Method of the class: ReviewsListTable{}

No Hooks.

Return

Array.

Usage

$ReviewsListTable = new ReviewsListTable();
$ReviewsListTable->get_filter_product_arguments() : array;

ReviewsListTable::get_filter_product_arguments() code WC 8.7.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;
}