Filter
rpress_show_oembed_purchase_links
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#
| Parameter | Type | Description |
|---|---|---|
$show | bool | Whether 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), inrpress_add_oembed_price()
Was this page helpful?
