Automattic\WooCommerce\Internal\ProductAttributes

VisualAttributeTermAdmin::get_current_taxonomy │ private │ WC 1.0

Get current taxonomy from request.

Метод класса: VisualAttributeTermAdmin{}

Хуков нет.

Возвращает

string.

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

// private - только в коде основоного (родительского) класса
$result = $this->get_current_taxonomy(): string;

Код VisualAttributeTermAdmin::get_current_taxonomy() WC 11.2.2

private function get_current_taxonomy(): string {
	return isset( $_GET['taxonomy'] ) ? sanitize_text_field( wp_unslash( $_GET['taxonomy'] ) ) : ''; // phpcs:ignore WordPress.Security.NonceVerification.Recommended
}