Automattic\WooCommerce\Admin\Features\Navigation

Screen::register_taxonomy()public staticWC 1.0

Register taxonomy for use in WooCommerce Navigation screens.

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

No Hooks.

Return

null. Nothing.

Usage

$result = Screen::register_taxonomy( $taxonomy );
$taxonomy(string) (required)
Taxonomy to add.

Code of Screen::register_taxonomy() WC 7.1.0

public static function register_taxonomy( $taxonomy ) {
	if ( ! in_array( $taxonomy, self::$taxonomies, true ) ) {
		self::$taxonomies[] = $taxonomy;
	}
}