Automattic\WooCommerce\Internal\Admin\ProductReviews
Reviews::is_reviews_page()
Determines whether the current page is the reviews page.
Метод класса: Reviews{}
Хуков нет.
Возвращает
true|false
.
Использование
$Reviews = new Reviews(); $Reviews->is_reviews_page() : bool;
Заметки
- Global. WP_Screen. $current_screen
Код Reviews::is_reviews_page() Reviews::is reviews page WC 9.3.1
public function is_reviews_page() : bool { global $current_screen; return isset( $current_screen->base ) && $current_screen->base === 'product_page_' . static::MENU_SLUG; }