WRO implements Service, Registerable
Integrates with WooCommerce Restaurant Ordering
Tags
Interfaces, Classes and Traits
- Service
- Marker interface to denote a service.
- Registerable
- An object that can be registered with WordPress via the Plugin API, i.e. add_action() and add_filter().
Table of Contents
- $settings : mixed
- $theme : mixed
- __construct() : mixed
- Constructor
- maybe_hide_wro_notice() : bool
- Hides '[product] added to cart' notice from WC Restaurant Ordering plugin when Fast Cart auto-open setting has been enabled.
- register() : void
- Hide WRO notice when it's redundant with WFC notices.
Properties
$settings
private
mixed
$settings
$theme
private
mixed
$theme
Methods
__construct()
Constructor
public
__construct() : mixed
Return values
mixed —maybe_hide_wro_notice()
Hides '[product] added to cart' notice from WC Restaurant Ordering plugin when Fast Cart auto-open setting has been enabled.
public
maybe_hide_wro_notice(bool $notice) : bool
hooks into wc_restaurant_ordering_show_cart_notice filter
Parameters
- $notice : bool
-
original value of whether or not to show the notice
Tags
Return values
bool —register()
Hide WRO notice when it's redundant with WFC notices.
public
register() : void