WC_Gateway_Paypal::process_admin_options()publicWC 1.0

Processes and saves options. If there is an error thrown, will continue to save and validate fields, but will leave the erroring field out.

Method of the class: WC_Gateway_Paypal{}

No Hooks.

Return

true|false. was anything saved?

Usage

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

WC_Gateway_Paypal::process_admin_options() code WC 8.6.1

public function process_admin_options() {
	$saved = parent::process_admin_options();

	// Maybe clear logs.
	if ( 'yes' !== $this->get_option( 'debug', 'no' ) ) {
		if ( empty( self::$log ) ) {
			self::$log = wc_get_logger();
		}
		self::$log->clear( 'paypal' );
	}

	return $saved;
}