get_models
Get modelsget all cars models
array(1) { [0]=> object(WP_Term)#6620 (10) { ["term_id"]=> int(211) ["name"]=> string(2) "X3" ["slug"]=> string(2) "x3" ["term_group"]=> int(0) ["term_taxonomy_id"]=> int(211) ["taxonomy"]=> string(9) "car-model" ["description"]=> string(0) "" ["parent"]=> int(210) ["count"]=> int(1) ["filter"]=> string(3) "raw" } }
Array ( [0] => WP_Term Object ( [term_id] => 211 [name] => X3 [slug] => x3 [term_group] => 0 [term_taxonomy_id] => 211 [taxonomy] => car-model [description] => [parent] => 210 [count] => 1 [filter] => raw ) )
array(2) { [0]=> object(WP_Term)#6628 (10) { ["term_id"]=> int(208) ["name"]=> string(11) "Ford Fiesta" ["slug"]=> string(11) "ford-fiesta" ["term_group"]=> int(0) ["term_taxonomy_id"]=> int(208) ["taxonomy"]=> string(9) "car-model" ["description"]=> string(0) "" ["parent"]=> int(207) ["count"]=> int(1) ["filter"]=> string(3) "raw" } [1]=> object(WP_Term)#6682 (10) { ["term_id"]=> int(209) ["name"]=> string(11) "Ford Mondeo" ["slug"]=> string(11) "ford-mondeo" ["term_group"]=> int(0) ["term_taxonomy_id"]=> int(209) ["taxonomy"]=> string(9) "car-model" ["description"]=> string(0) "" ["parent"]=> int(207) ["count"]=> int(1) ["filter"]=> string(3) "raw" } }
Array ( [0] => WP_Term Object ( [term_id] => 208 [name] => Ford Fiesta [slug] => ford-fiesta [term_group] => 0 [term_taxonomy_id] => 208 [taxonomy] => car-model [description] => [parent] => 207 [count] => 1 [filter] => raw ) [1] => WP_Term Object ( [term_id] => 209 [name] => Ford Mondeo [slug] => ford-mondeo [term_group] => 0 [term_taxonomy_id] => 209 [taxonomy] => car-model [description] => [parent] => 207 [count] => 1 [filter] => raw ) )
Audi
A6
Q7
BMW
X3
X5
Ford
Ford Fiesta
Ford Mondeo
Audi: ["A6","Q7",],BMW: ["X3","X5",],Ford: ["Ford Fiesta","Ford Mondeo",],output: Audi: [A6",Q7",],BMW: [X3",X5",],Ford: [Ford Fiesta",Ford Mondeo",],