Filter
rpress_mobile_ordering_popup_only
On this page
Filters whether legacy menus get the 3.5 item popup.
True when the layer is off and the legacy menu is in use. In that case only the item popup part of the layer loads, without the redesigned menu chrome.
Available since RestroPress 3.5.
Parameters#
| Parameter | Type | Description |
|---|---|---|
$popup_only | bool | Whether to load the popup part. |
Return value#
bool. Whether to load the popup part only.
Example#
add_filter( 'rpress_mobile_ordering_popup_only', 'my_mobile_popup_only', 10, 1 );
function my_mobile_popup_only( $popup_only ) {
return false;
}
Source#
Applied in:
includes/features/mobile-ordering/functions.php(line 47), inrpress_mobile_ordering_popup_only()
See also#
Was this page helpful?
