Automattic\WooCommerce\Internal\Admin\ProductReviews
ReviewsListTable::get_filter_product_arguments
Gets the post_id argument based on the current request.
Method of the class: ReviewsListTable{}
No Hooks.
Returns
Array.
Usage
$ReviewsListTable = new ReviewsListTable(); $ReviewsListTable->get_filter_product_arguments() : array;
ReviewsListTable::get_filter_product_arguments() ReviewsListTable::get filter product arguments code WC 10.3.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;
}