Init
in package
Uses
UseWPFunctions
Class Init
This class initializes the Blueprint feature for WooCommerce.
Table of Contents
- $initialized_exporters : array<string|int, mixed>
- Array of initialized exporters.
- __construct() : mixed
- Init constructor.
- add_js_vars() : mixed
- Add shared JS vars.
- add_woo_exporters() : array<string|int, StepExporter>
- Add Woo Specific Exporters.
- get_step_groups_for_js() : array<string|int, mixed>
- Return step groups for JS.
- get_woo_exporters() : array<string|int, StepExporter>
- Return Woo Exporter classnames.
- init_rest_api() : void
- Register REST API routes.
Properties
$initialized_exporters
Array of initialized exporters.
private
array<string|int, mixed>
$initialized_exporters
= array()
Methods
__construct()
Init constructor.
public
__construct() : mixed
Return values
mixed —add_js_vars()
Add shared JS vars.
public
add_js_vars(array<string|int, mixed> $settings) : mixed
Parameters
- $settings : array<string|int, mixed>
-
shared settings.
Return values
mixed —add_woo_exporters()
Add Woo Specific Exporters.
public
add_woo_exporters(array<string|int, StepExporter> $exporters) : array<string|int, StepExporter>
Parameters
- $exporters : array<string|int, StepExporter>
-
Array of step exporters.
Return values
array<string|int, StepExporter> —get_step_groups_for_js()
Return step groups for JS.
public
get_step_groups_for_js() : array<string|int, mixed>
This is used to populate exportable items on the blueprint settings page.
Return values
array<string|int, mixed> —get_woo_exporters()
Return Woo Exporter classnames.
public
get_woo_exporters() : array<string|int, StepExporter>
Return values
array<string|int, StepExporter> —init_rest_api()
Register REST API routes.
public
init_rest_api() : void