WordPress как на ладони
Недорогой хостинг для сайтов на WordPress: wordpress.jino.ru
функция не описана

Automattic\WooCommerce\Admin

PageController::determine_current_page() public WC 1.0

Determine the current page ID, if it was registered with this controller.

{} Это метод класса: PageController{}

Хуков нет.

Возвращает

null. Ничего.

Использование

$PageController = new PageController();
$PageController->determine_current_page();

Код PageController::determine_current_page() WC 5.8.0

public function determine_current_page() {
	$current_url       = '';
	$current_screen_id = $this->get_current_screen_id();

	if ( isset( $_SERVER['REQUEST_URI'] ) ) {
		$current_url = esc_url_raw( wp_unslash( $_SERVER['REQUEST_URI'] ) );
	}

	$current_query = wp_parse_url( $current_url, PHP_URL_QUERY );
	parse_str( $current_query, $current_pieces );
	$current_path  = empty( $current_pieces['page'] ) ? '' : $current_pieces['page'];
	$current_path .= empty( $current_pieces['path'] ) ? '' : '&path=' . $current_pieces['path'];

	foreach ( $this->pages as $page ) {
		if ( isset( $page['js_page'] ) && $page['js_page'] ) {
			// Check registered admin pages.
			if (
				$page['path'] === $current_path
			) {
				$this->current_page = $page;
				return;
			}
		} else {
			// Check connected admin pages.
			if (
				isset( $page['screen_id'] ) &&
				$page['screen_id'] === $current_screen_id
			) {
				$this->current_page = $page;
				return;
			}
		}
	}
	$this->current_page = false;
}