WordPress как на ладони
Недорогой хостинг для сайтов на WordPress: wordpress.jino.ru Платформа для конвертации и монетизации трафика
функция не описана

WC_Shipping_Free_Shipping::init() public WC 1.0

Initialize free shipping.

{} Это метод класса: WC_Shipping_Free_Shipping{}

Хуков нет.

Возвращает

Null. Ничего.

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

$WC_Shipping_Free_Shipping = new WC_Shipping_Free_Shipping();
$WC_Shipping_Free_Shipping->init();

Код WC_Shipping_Free_Shipping::init() WC 4.7.1

<?php
public function init() {
	// Load the settings.
	$this->init_form_fields();
	$this->init_settings();

	// Define user set variables.
	$this->title            = $this->get_option( 'title' );
	$this->min_amount       = $this->get_option( 'min_amount', 0 );
	$this->requires         = $this->get_option( 'requires' );
	$this->ignore_discounts = $this->get_option( 'ignore_discounts' );

	// Actions.
	add_action( 'woocommerce_update_options_shipping_' . $this->id, array( $this, 'process_admin_options' ) );
	add_action( 'admin_footer', array( 'WC_Shipping_Free_Shipping', 'enqueue_admin_js' ), 10 ); // Priority needs to be higher than wc_print_js (25).
}