Skip to content
Docs
Get RestroPress

Action

rpress_after_fooditem_content

Updated
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#

ParameterTypeDescription
$post_idintMenu 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), in rpress_after_fooditem_content()

See also#

Was this page helpful?