RestroPress

⌘K
  1. Home
  2. Docs
  3. RestroPress
  4. Developer Docs
  5. Actions
  6. rpress_before_fooditem_content

rpress_before_fooditem_content

Runs just before the content for a single fooditem is displayed. Usually this happens in single.php or single-fooditem.php.

This action is primarily for adding extra content to the top of fooditem content, most likely in scenarios where you are unable to modify the template files, or do not have a single-fooditem.php.

The fooditem ID is passed as a parameter.

How can we help?