Filter
rpress_product_notes
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#
| Parameter | Type | Description |
|---|---|---|
$notes | string | Menu item notes. |
$ID | int | Menu 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), inRPRESS_Fooditem::get_notes()
Was this page helpful?
