Filter
rpress_mobile_ordering_enabled
On this page
Filters whether the 3.5 mobile ordering layer loads on the menu page.
Defaults to true unless the legacy menu (old_ui_ux setting) is on, because the layer styles the redesigned menu markup only.
Available since RestroPress 3.5.
Parameters#
| Parameter | Type | Description |
|---|---|---|
$enabled | bool | Whether the layer loads. |
Return value#
bool. Whether the layer loads.
Example#
add_filter( 'rpress_mobile_ordering_enabled', 'my_mobile_ordering_enabled', 10, 1 );
function my_mobile_ordering_enabled( $enabled ) {
return false;
}
Source#
Applied in:
includes/features/mobile-ordering/functions.php(line 28), inrpress_mobile_ordering_enabled()
See also#
Was this page helpful?
