Skip to content
Docs
Get RestroPress

Action

rpress_fooditem_history_header_start

Updated
On this page

Fires at the start of the header row of the menu item history table.

Runs inside the table header row before the item name column. Callbacks should echo a th cell to add a column; add a matching cell in rpress_fooditem_history_row_start so the columns line up.

Example#

add_action( 'rpress_fooditem_history_header_start', 'my_history_header_col' );
function my_history_header_col() {
	echo '<th>' . esc_html__( 'Order', 'my-textdomain' ) . '</th>';
}

Source#

Fired from:

  • templates/history-fooditems.php (line 21)

See also#

Was this page helpful?