Skip to content
Docs
Get RestroPress

Filter

rpress_product_notes

Updated
On this page

Filters the notes text of a menu item.

Runs in RPRESS_Fooditem::get_notes() with the value of the rpress_product_notes meta. The result is cast to string.

Parameters#

ParameterTypeDescription
$notesstringMenu item notes.
$IDintMenu item ID.

Return value#

string. The notes text.

Example#

function my_product_notes( $notes, $fooditem_id ) {
	return trim( $notes );
}
add_filter( 'rpress_product_notes', 'my_product_notes', 10, 2 );

Source#

Applied in:

  • includes/class-rpress-fooditem.php (line 399), in RPRESS_Fooditem::get_notes()
Was this page helpful?