Automattic\WooCommerce\Admin\Features
Onboarding::is_wc_pages()
Determine if the current page is one of the WC Admin pages.
{} Это метод класса: Onboarding{}
Хуков нет.
Возвращает
true|false
.
Использование
// protected - в коде основоного (родительского) или дочернего класса $result = $this->is_wc_pages();
Код Onboarding::is_wc_pages() Onboarding::is wc pages WC 6.4.1
protected function is_wc_pages() { $current_page = PageController::get_instance()->get_current_page(); if ( ! $current_page || ! isset( $current_page['path'] ) ) { return false; } return 0 === strpos( $current_page['path'], 'wc-admin' ); }