Order_Handler implements Registerable, Standard_Service

Order handler

Tags
author

Barn2 Plugins support@barn2.com

license

GPL-3.0

copyright

Barn2 Media Ltd

Interfaces, Classes and Traits

Registerable
Standard_Service

Table of Contents

add_wholesale_metadata()  : mixed
Add a `_wholesale` meta_key to the an order if the current user has a wholesale role
register()  : mixed
{@inheritdoc}

Methods

add_wholesale_metadata()

Add a `_wholesale` meta_key to the an order if the current user has a wholesale role

public add_wholesale_metadata(int $order_id[, WC_Order|null $order = null ]) : mixed
Parameters
$order_id : int

The ID of the order that has just been created or updated

$order : WC_Order|null = null

The order that has just been created or updated

Tags
Return values
mixed

register()

{@inheritdoc}

public register() : mixed
Tags
Return values
mixed

Search results