Action
rpress_product_details_widget_form
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#
| Parameter | Type | Description |
|---|---|---|
$instance | array | The 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), inRPRESS_Product_Details_Widget::form()
See also#
Was this page helpful?
