Skip to content
Docs
Get RestroPress

Filter

rpress_show_oembed_purchase_links

Updated
On this page

Filters whether an oEmbed shows the menu item price and purchase link.

Runs in rpress_add_oembed_price() for menu items. The default is true unless the _rpress_hide_purchase_link meta is set on the menu item.

Parameters#

ParameterTypeDescription
$showboolWhether the price block is shown in the embed.

Return value#

bool. True to show the price block.

Example#

function my_hide_embed_price( $show ) {
	return false;
}
add_filter( 'rpress_show_oembed_purchase_links', 'my_hide_embed_price' );

Source#

Applied in:

  • includes/template-functions.php (line 950), in rpress_add_oembed_price()
Was this page helpful?