Inventory_Presser_Taxonomies::query_vars_array()
An array of all our taxonomy query variables.
Return Return
(array)
Source Source
File: includes/class-taxonomies.php
public 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; }
Expand full source codeCollapse full source codeView on Github