Skip to content
Docs
Get RestroPress

Action

rpress_product_details_widget_before_end

Updated
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#

ParameterTypeDescription
$instancearrayThe widget instance settings.
$fooditem_idintID 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), in RPRESS_Product_Details_Widget::widget()

See also#

Was this page helpful?