WC_Shipping_Legacy_Local_Pickup::process_admin_options()
Process and redirect if disabled.
Method of the class: WC_Shipping_Legacy_Local_Pickup{}
No Hooks.
Return
null
. Nothing (null).
Usage
$WC_Shipping_Legacy_Local_Pickup = new WC_Shipping_Legacy_Local_Pickup(); $WC_Shipping_Legacy_Local_Pickup->process_admin_options();
WC_Shipping_Legacy_Local_Pickup::process_admin_options() WC Shipping Legacy Local Pickup::process admin options code WC 9.4.2
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§ion=options' ) ); exit; } }