Automattic\WooCommerce\Internal\ProductAttributes

VisualAttributeTermAdmin::get_current_taxonomyprivateWC 1.0

Get current taxonomy from request.

Method of the class: VisualAttributeTermAdmin{}

No Hooks.

Returns

String.

Usage

// private - for code of main (parent) class only
$result = $this->get_current_taxonomy(): string;

VisualAttributeTermAdmin::get_current_taxonomy() code WC 10.9.1

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