Automattic\WooCommerce\Internal\Admin\ProductReviews

Reviews::get_reviews_page_url()public staticWC 1.0

Retrieves the URL to the product reviews page.

Method of the class: Reviews{}

No Hooks.

Return

String.

Usage

$result = Reviews::get_reviews_page_url() : string;

Reviews::get_reviews_page_url() code WC 8.7.0

public static function get_reviews_page_url() : string {
	return add_query_arg(
		[
			'post_type' => 'product',
			'page'      => static::MENU_SLUG,
		],
		admin_url( 'edit.php' )
	);
}