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

Automattic\WooCommerce\Admin\Notes

Notes::get_screen_name() public WC 1.0

Get screen name.

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

Хуков нет.

Возвращает

Строку. The screen name.

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

$result = Notes::get_screen_name();

Код Notes::get_screen_name() WC 5.4.1

<?php
public static function get_screen_name() {
	$screen_name = '';

	if ( isset( $_SERVER['HTTP_REFERER'] ) ) {
		parse_str( wp_parse_url( $_SERVER['HTTP_REFERER'], PHP_URL_QUERY ), $queries ); // phpcs:ignore sanitization ok.
	}
	if ( isset( $queries ) ) {
		$page      = isset( $queries['page'] ) ? $queries['page'] : null;
		$path      = isset( $queries['path'] ) ? $queries['path'] : null;
		$post_type = isset( $queries['post_type'] ) ? $queries['post_type'] : null;
		$post      = isset( $queries['post'] ) ? get_post_type( $queries['post'] ) : null;
	}

	if ( isset( $page ) ) {
		$current_page = 'wc-admin' === $page ? 'home_screen' : $page;
		$screen_name  = isset( $path ) ? substr( str_replace( '/', '_', $path ), 1 ) : $current_page;
	} elseif ( isset( $post_type ) ) {
		$screen_name = $post_type;
	} elseif ( isset( $post ) ) {
		$screen_name = $post;
	}
	return $screen_name;
}