Or, embed this snippet using GenerateWP WordPress Plugin.

Download

Clone

Action

function register_component_taxonomy( $component, $term ) {
	
}
add_action( 'init', 'register_component_taxonomy', 10, 2 );