Filter
rpress_mobile_ordering_show_store_card
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#
| Parameter | Type | Description |
|---|---|---|
$show | bool | Whether to show the card. True when the pack ID is 'modern'. |
$pack_id | string | Active 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), inrpress_mobile_ordering_render_store_card()
Was this page helpful?
