Action
rpress_fooditem_options_addons_data
Fires at the end of the Add-ons section of the menu item editor.
Runs after the add-on group selector inside the Add-ons section of the Menu Item Data meta box. Output extra fields or markup for add-on related settings here.
Example#
function my_fooditem_addons_extra() {
echo '<p class="description">' . esc_html__( 'Add-ons are billed separately.', 'my-plugin' ) . '</p>';
}
add_action( 'rpress_fooditem_options_addons_data', 'my_fooditem_addons_extra' );
Notes#
No arguments are passed; use get_the_ID() or the global $post to identify the menu item. Fields still need to be registered for saving via rpress_metabox_fields_save or rpress_save_fooditem.
Source#
Fired from:
includes/admin/fooditems/views/html-fooditem-data-addons.php(line 67)
See also#
Was this page helpful?
