WC_Gateway_Paypal::process_admin_options()

Processes and saves options.


Description Description

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


Return Return

(bool) was anything saved?


Top ↑

Source Source

File: includes/gateways/paypal/class-wc-gateway-paypal.php

	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;
	}


Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.