RestroPress

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

rpress_food_type_icon

This filter is applied to use get food type icon from id, it is including two parameters.
$food_type -> is containing food type.
$icon_url -> is containing the URL path of the image icon.

An example of how you can append is below:

function add_food_type_icon( $food_type ) {
$icon_url = //url path of image icon
}
add_filter('rpress_food_type_icon', 'add_food_type_icon', 10, 2);

How can we help?