WordPress at Your Fingertips
function is not described

WC_Gateway_Paypal::process_admin_options() public WC 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.

{} It's a 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();

Code of WC_Gateway_Paypal::process_admin_options() WC 5.6.0

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