Skip to content
Docs
Get RestroPress

Action

rpress_product_details_widget_before_categories_and_tags

Updated
On this page

Fires before the categories and tags in the menu item details widget.

Runs after the purchase button and before the category and tag list is printed.

Parameters#

ParameterTypeDescription
$instancearrayThe widget instance settings.
$fooditem_idintID of the menu item shown in the widget.

Example#

function my_details_widget_before_terms( $instance, $fooditem_id ) {
	echo '<hr class="my-divider" />';
}
add_action( 'rpress_product_details_widget_before_categories_and_tags', 'my_details_widget_before_terms', 10, 2 );

Source#

Fired from:

  • includes/widgets.php (line 286), in RPRESS_Product_Details_Widget::widget()

See also#

Was this page helpful?