Action
rpress_after_fooditem_content
On this page
Fires after the content of a single menu item.
Runs from a the_content filter on the single menu item page (main query only, not password protected). Anything echoed is buffered and appended to the content.
Parameters#
| Parameter | Type | Description |
|---|---|---|
$post_id | int | Menu item post ID. |
Example#
function my_after_fooditem_content( $post_id ) {
echo '<p class="my-note">' . esc_html__( 'Allergen information is available on request.', 'my-plugin' ) . '</p>';
}
add_action( 'rpress_after_fooditem_content', 'my_after_fooditem_content' );
Source#
Fired from:
includes/template-functions.php(line 439), inrpress_after_fooditem_content()
See also#
Was this page helpful?
