Action
rpress_fooditems_list_before
On this page
Fires before the items of each category are printed.
Runs once per category in the menu list templates, after the query is created and before the check for posts. It fires even when the category has no items.
Parameters#
| Parameter | Type | Description |
|---|---|---|
$atts | array | The menu item shortcode attributes. |
Example#
function my_fooditems_list_before( $atts ) {
echo '<div class="my-category-start"></div>';
}
add_action( 'rpress_fooditems_list_before', 'my_fooditems_list_before', 10, 1 );
Source#
Fired from:
templates/fooditem/fooditems.php(line 76)templates/fooditem/fooditems.php(line 122)templates/grid/fooditems.php(line 106)templates/list/fooditems.php(line 103)
See also#
Was this page helpful?
