Automattic\WooCommerce\Internal\Admin\ProductReviews

Reviews::get_reviews_page_url()public staticWC 1.0

Retrieves the URL to the product reviews page.

Метод класса: Reviews{}

No Hooks.

Return

String.

Usage

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

Code of Reviews::get_reviews_page_url() WC 7.1.0

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