Inventory_Presser_Taxonomies::register_taxonomies()

register_taxonomies


Description Description

Registers all our custom taxonomies


Top ↑

Return Return

(void)


Top ↑

Source Source

File: includes/class-taxonomies.php

	static function register_taxonomies()
	{
		//loop over this data, register the taxonomies, and populate the terms if needed
		$taxonomy_data = self::taxonomy_data();
		for( $i=0; $i<sizeof( $taxonomy_data ); $i++ )
		{
			//create the taxonomy, replace hyphens with underscores
			$taxonomy_name = str_replace( '-', '_', $taxonomy_data[$i]['args']['query_var'] );
			register_taxonomy( $taxonomy_name, INVP::POST_TYPE, $taxonomy_data[$i]['args'] );
		}
	}