Inventory_Presser_Taxonomies::query_vars_array()

query_vars_array


Description Description

An array of all our taxonomy query variables.


Top ↑

Return Return

(void)


Top ↑

Source Source

File: includes/class-taxonomies.php

	static function query_vars_array()
	{
		$arr = array();
		foreach( self::taxonomy_data() as $taxonomy_array )
		{
			if( ! isset( $taxonomy_array['args'] ) || ! isset( $taxonomy_array['args']['query_var'] ) )
			{
				continue;
			}
			$slug = str_replace( ' ', '_', strtolower( $taxonomy_array['args']['query_var'] ) );
			array_push( $arr, $slug );
		}
		return $arr;
	}