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.
Метод класса: WC_Gateway_Paypal{}
Хуков нет.
Возвращает
true|false
. was anything saved?
Использование
$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 WC 8.7.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; }