Skip to content
Docs
Get RestroPress

Action

rpress_product_details_widget_form

Updated
On this page

Fires at the end of the menu item details widget settings form.

Runs in the widget form() method in the admin after the standard fields. Use it to print extra fields. The widget object is not passed, so build the field names yourself and save them in rpress_product_details_widget_update.

Parameters#

ParameterTypeDescription
$instancearrayThe saved widget instance settings.

Example#

function my_details_widget_form( $instance ) {
	echo '<p>' . esc_html__( 'Extra options are managed by My Plugin.', 'my-textdomain' ) . '</p>';
}
add_action( 'rpress_product_details_widget_form', 'my_details_widget_form', 10, 1 );

Source#

Fired from:

  • includes/widgets.php (line 400), in RPRESS_Product_Details_Widget::form()

See also#

Was this page helpful?