rpress_allowed_fooditem_taxonomies

Author: RestroPress 15 views

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 );