WC_Gateway_Paypal::process_admin_options
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.
Returns
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() WC Gateway Paypal::process admin options code WC 10.5.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( self::ID );
}
// Trigger Transact onboarding when settings are saved.
if ( $saved ) {
$this->maybe_onboard_with_transact();
}
return $saved;
}