Skip to content
Docs
Get RestroPress

Action

rpress_fooditem_categories

Updated
On this page

Fires inside the Category field group of the menu item editor.

Runs in the Category, Tags & Dietary section, directly after the Add New Category button below the category selector. Use it to output additional controls related to menu item categories.

Example#

function my_fooditem_categories_note() {
	echo '<p class="description">' . esc_html__( 'Choose at least one category.', 'my-plugin' ) . '</p>';
}
add_action( 'rpress_fooditem_categories', 'my_fooditem_categories_note' );

Notes#

No arguments are passed.

Source#

Fired from:

  • includes/admin/fooditems/views/html-fooditem-data-category.php (line 105)

See also#

Was this page helpful?