Automattic\WooCommerce\Admin\Features\Fulfillments

FulfillmentsSettings::register │ public │ WC 1.0

Registers the hooks related to fulfillments settings.

Метод класса: FulfillmentsSettings{}

Хуков нет.

Возвращает

null. Ничего (null).

Использование

$FulfillmentsSettings = new FulfillmentsSettings();
$FulfillmentsSettings->register();

Код FulfillmentsSettings::register() WC 11.2.1

public function register() {
	add_filter( 'admin_init', array( $this, 'init_settings_auto_fulfill' ) );
	add_action( 'woocommerce_order_status_processing', array( $this, 'auto_fulfill_items_on_processing' ), 10, 2 );
	add_action( 'woocommerce_order_status_completed', array( $this, 'auto_fulfill_items_on_completed' ), 10, 2 );
}