Automattic\WooCommerce\Admin\Features\Navigation

Screen::register_taxonomy()public staticWC 1.0

Register taxonomy for use in WooCommerce Navigation screens.

Method of the class: Screen{}

No Hooks.

Return

null. Nothing (null).

Usage

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

Screen::register_taxonomy() code WC 8.7.0

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