WC_Shipping_Legacy_Free_Shipping::process_admin_options()publicWC 1.0

Process and redirect if disabled.

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

Хуков нет.

Возвращает

null. Ничего.

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

$WC_Shipping_Legacy_Free_Shipping = new WC_Shipping_Legacy_Free_Shipping();
$WC_Shipping_Legacy_Free_Shipping->process_admin_options();

Код WC_Shipping_Legacy_Free_Shipping::process_admin_options() WC 7.3.0

public function process_admin_options() {
	parent::process_admin_options();

	if ( 'no' === $this->settings['enabled'] ) {
		wp_redirect( admin_url( 'admin.php?page=wc-settings&tab=shipping&section=options' ) );
		exit;
	}
}