WordPress at Your Fingertips
function is not described

WC_Shipping_Legacy_Flat_Rate::process_admin_options() public WC 1.0

Process and redirect if disabled.

{} It's a method of the class: WC_Shipping_Legacy_Flat_Rate{}

No Hooks.

Return

null. Nothing.

Usage

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

Code of WC_Shipping_Legacy_Flat_Rate::process_admin_options() WC 5.9.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;
	}
}