Method: Returns an array of all our taxonomy slugs
Read MoreInventory_Presser_Taxonomies::save_taxonomy_term()
Method: Used by the save_post_{post_type} hook. Create a term relationship between a post and a term. Inserts the term first if it does not exist.
Read MoreInventory_Presser_Taxonomies::add_hooks()
Method: Adds hooks to register and manage our taxonomies
Read MoreInventory_Presser_Taxonomies::change_taxonomy_show_ui_attributes()
Method: When the user flips the “Show All Taxonomies” setting switch, this method changes the taxonomy registration so they are shown.
Read MoreInventory_Presser_Taxonomies::tax_query_exclude_sold()
Method: Creates an array that can be set as a query’s tax_query that will exclude sold vehicles.
Read MoreInventory_Presser_Taxonomies::meta_box_html_colors()
Method: Outputs HTML that renders a meta box for the colors taxonomy
Read MoreInventory_Presser_Taxonomies::register_taxonomies()
Method: Registers all our custom taxonomies
Read MoreInventory_Presser_Taxonomies::taxonomy_meta_box_html()
Method: Creates HTML output for a meta box that turns a taxonomy into a select drop-down list instead of the typical checkboxes. Including a blank option is the only way a user can remove the value.
Read MoreInventory_Presser_Taxonomies::taxonomy_data()
Method: An array of taxonomy data used during registration and default term population
Read MoreInventory_Presser_Taxonomies::sort_terms_as_numbers()
Method: Makes sure that taxonomy terms that are numbers are sorted as numbers.
Read More