RestroPress

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

rpress_fooditem_labels

This filter is applied to use add the food items labels, it is including one parameter.
$fooditem_labels-> an array containing food items labels.

An example of how you can append is below:

function add_fooditems_labels( $fooditem_labels ) {
$fooditem_labels = //add custome labels.
return $fooditem_labels;
}
add_filter('rpress_fooditem_labels', 'add_fooditems_labels', 10, 1);

How can we help?