Action
rpress_fooditem_options_general_top
Fires at the end of the Image & Type section of the menu item editor.
Runs inside the first section of the Menu Item Data meta box, after the image upload block and the Food Type options. Output additional fields for the item image or type here.
Example#
function my_fooditem_image_type_extra() {
echo '<p class="description">' . esc_html__( 'Images should be at least 600px wide.', 'my-plugin' ) . '</p>';
}
add_action( 'rpress_fooditem_options_general_top', 'my_fooditem_image_type_extra' );
Notes#
No arguments are passed.
Source#
Fired from:
includes/admin/fooditems/views/html-fooditem-data-general.php(line 88)
See also#
Was this page helpful?
