Automattic\WooCommerce\Internal\Admin\ProductReviews

Reviews::is_reviews_page()publicWC 1.0

Determines whether the current page is the reviews page.

Method of the class: Reviews{}

No Hooks.

Return

true|false.

Usage

$Reviews = new Reviews();
$Reviews->is_reviews_page() : bool;

Notes

  • Global. WP_Screen. $current_screen

Reviews::is_reviews_page() code WC 7.1.0

public function is_reviews_page() : bool {
	global $current_screen;

	return isset( $current_screen->base ) && $current_screen->base === 'product_page_' . static::MENU_SLUG;
}