Action
rpress_product_details_widget_before_categories_and_tags
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#
| Parameter | Type | Description |
|---|---|---|
$instance | array | The widget instance settings. |
$fooditem_id | int | ID 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), inRPRESS_Product_Details_Widget::widget()
See also#
Was this page helpful?
