WooCommerce_Wholesale_Pro implements Service, Registerable Uses Generator_Aware
Handles the WooCommerce Wholesale Pro integration.
Tags
Interfaces, Classes and Traits
- Service
- Registerable
Table of Contents
- $generator : Table_Generator
- Instance of the table generator class.
- add_wholesale_field() : mixed
- Add wholesale fileds to table builder wizard.
- create_wholesale_table() : void
- Creates the wholesale database table.
- delete_previous_wholesale_reference() : mixed
- Deletes the previous wholesale store override table reference.
- edit_update_wwp_layout() : mixed
- Update WWP layout options when editing a table.
- maybe_create_wholesale_table() : void
- Checks if wholesale store option can be checked or if a new wholesale table should be created.
- maybe_remove_wholesale_table() : mixed
- Checks if wholesale store option can be unchecked or if the table should be converted to manual.
- register() : mixed
- Register the integrations for WooCommerce Wholesale Pro.
- wizard_list_update_wwp_layout() : mixed
- Update WWP layout options when creating or deleting a table.
Properties
$generator
Instance of the table generator class.
public
Table_Generator
$generator
Methods
add_wholesale_field()
Add wholesale fileds to table builder wizard.
public
add_wholesale_field(mixed $fields, mixed $id) : mixed
Parameters
- $fields : mixed
-
Wizard fields.
- $id : mixed
-
Id of the wizard step.
Return values
mixed —Wizard fields.
create_wholesale_table()
Creates the wholesale database table.
public
static create_wholesale_table() : void
Return values
void —delete_previous_wholesale_reference()
Deletes the previous wholesale store override table reference.
public
static delete_previous_wholesale_reference() : mixed
Return values
mixed —edit_update_wwp_layout()
Update WWP layout options when editing a table.
public
edit_update_wwp_layout(mixed $settings, mixed $table_id) : mixed
Parameters
- $settings : mixed
- $table_id : mixed
Return values
mixed —maybe_create_wholesale_table()
Checks if wholesale store option can be checked or if a new wholesale table should be created.
public
static maybe_create_wholesale_table() : void
Return values
void —maybe_remove_wholesale_table()
Checks if wholesale store option can be unchecked or if the table should be converted to manual.
public
static maybe_remove_wholesale_table() : mixed
Return values
mixed —register()
Register the integrations for WooCommerce Wholesale Pro.
public
register() : mixed
Return values
mixed —wizard_list_update_wwp_layout()
Update WWP layout options when creating or deleting a table.
public
wizard_list_update_wwp_layout(mixed $data, mixed $class_function, mixed $type) : mixed
Parameters
- $data : mixed
- $class_function : mixed
- $type : mixed