RestroPress

⌘K
  1. Home
  2. Docs
  3. RestroPress
  4. Developer Docs
  5. Filters
  6. rpress_allowed_fooditem_taxonomies

rpress_allowed_fooditem_taxonomies

This filter is applied to use the taxonomy to get labels for, it is including one parameter, is containing an array.
array( ‘addon_category’, ‘fooditem_tag’, ‘food-category’ ).

An example of how you can append additional information:

function allowed_fooditem_taxonomies( $taxonomy ) {
// its return allowed fooditem taxonomy;
$taxonomy = get_taxonomy( $taxonomy );
return $taxonomy;
}
add_filter( 'rpress_allowed_fooditem_taxonomies', 'allowed_fooditem_taxonomies', 10,1 );

How can we help?