Automattic\WooCommerce\Internal\Fulfillments
FulfillmentsSettings::register
Registers the hooks related to fulfillments settings.
Method of the class: FulfillmentsSettings{}
No Hooks.
Returns
null. Nothing (null).
Usage
$FulfillmentsSettings = new FulfillmentsSettings(); $FulfillmentsSettings->register();
FulfillmentsSettings::register() FulfillmentsSettings::register code WC 10.3.3
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 );
}