Skip to content
Docs
Get RestroPress

Filter

rpress_mobile_ordering_enabled

Updated
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#

ParameterTypeDescription
$enabledboolWhether 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), in rpress_mobile_ordering_enabled()

See also#

Was this page helpful?