Skip to content
Docs
Get RestroPress

Filter

rpress_mobile_ordering_show_store_card

Updated
On this page

Filters whether the store card shows above the menu.

By default the card shows only when the active template pack is 'modern', so the Classic pack keeps its 3.4 look.

Available since RestroPress 3.5.

Parameters#

ParameterTypeDescription
$showboolWhether to show the card. True when the pack ID is 'modern'.
$pack_idstringActive template pack ID.

Return value#

bool. Whether to show the card.

Example#

add_filter( 'rpress_mobile_ordering_show_store_card', 'my_show_store_card', 10, 2 );
function my_show_store_card( $show, $pack_id ) {
	return true;
}

Source#

Applied in:

  • includes/features/mobile-ordering/functions.php (line 292), in rpress_mobile_ordering_render_store_card()
Was this page helpful?