Action
rpress_product_details_widget_before_end
On this page
Fires at the end of the menu item details widget.
Runs after the category and tag list and before the closing widget markup.
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_end( $instance, $fooditem_id ) {
echo '<p class="my-note">' . esc_html__( 'Allergen info on request.', 'my-textdomain' ) . '</p>';
}
add_action( 'rpress_product_details_widget_before_end', 'my_details_widget_before_end', 10, 2 );
Source#
Fired from:
includes/widgets.php(line 290), inRPRESS_Product_Details_Widget::widget()
See also#
Was this page helpful?
