RestroPress

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

rpress_default_fooditems_name

This filter is applied to use the restropress default food item name, it is including one parameter.
$defaults -> an array which contains default names.

An example of how you can append is below:

function rpress_default_labels( $defaults ) {
$defaults = //fooditems name.
return $defaults;
}
add_filter('rpress_default_fooditems_name', 'rpress_default_labels', 10, 1);

How can we help?