Action
rpress_get_food_categories
Fires before the category menu in the menu list templates.
Runs in the fooditem and list menu templates just before rp_get_categories. Use it to print content above the category navigation.
Example#
function my_before_food_categories() {
echo '<p class="my-menu-intro">' . esc_html__( 'Fresh food, made daily.', 'my-textdomain' ) . '</p>';
}
add_action( 'rpress_get_food_categories', 'my_before_food_categories', 10, 0 );
Source#
Fired from:
templates/fooditem/fooditems.php(line 45)templates/list/fooditems.php(line 80)
See also#
Was this page helpful?
