WooCommerce Code Reference

FulfillmentsSettings
in package

FulfillmentsSettings class.

Table of Contents

add_auto_fulfill_settings()  : array<string|int, mixed>
Add auto-fulfill settings to the WooCommerce settings.
auto_fulfill_items_on_completed()  : void
Automatically fulfill items in the order for orders that skip the processing state.
auto_fulfill_items_on_processing()  : void
Automatically fulfill items in the order on the processing state.
init_settings_auto_fulfill()  : mixed
Initialize settings for auto-fulfill options.
register()  : mixed
Registers the hooks related to fulfillments settings.

Methods

add_auto_fulfill_settings()

Add auto-fulfill settings to the WooCommerce settings.

public add_auto_fulfill_settings(array<string|int, mixed> $settings, string|null $current_section) : array<string|int, mixed>
Parameters
$settings : array<string|int, mixed>

The existing settings.

$current_section : string|null

The current section being viewed.

Return values
array<string|int, mixed>Modified settings with auto-fulfill options added.

auto_fulfill_items_on_completed()

Automatically fulfill items in the order for orders that skip the processing state.

public auto_fulfill_items_on_completed(int $order_id, WC_Order $order) : void
Parameters
$order_id : int

The ID of the order being created.

$order : WC_Order

The order object.

Return values
void

auto_fulfill_items_on_processing()

Automatically fulfill items in the order on the processing state.

public auto_fulfill_items_on_processing(int $order_id, WC_Order $order) : void
Parameters
$order_id : int

The ID of the order being created.

$order : WC_Order

The order object.

Return values
void