Automattic\WooCommerce\Internal\Admin\ProductReviews
Reviews::is_reviews_page
Determines whether the current page is the reviews page.
Method of the class: Reviews{}
No Hooks.
Returns
true|false.
Usage
$Reviews = new Reviews(); $Reviews->is_reviews_page(): bool;
Notes
- Global. WP_Screen.
$current_screen
Reviews::is_reviews_page() Reviews::is reviews page code WC 10.6.2
public function is_reviews_page(): bool {
global $current_screen;
return isset( $current_screen->base ) && 'product_page_' . static::MENU_SLUG === $current_screen->base;
}