Add event tracking to Payments

This commit is contained in:
Fernando Marichal 2022-02-16 15:32:41 -03:00
parent 265be6b514
commit b327fb5439
1 changed files with 3 additions and 1 deletions

View File

@ -216,7 +216,9 @@ abstract class WC_Settings_API {
}
}
return update_option( $this->get_option_key(), apply_filters( 'woocommerce_settings_api_sanitized_fields_' . $this->id, $this->settings ), 'yes' );
$option_key = $this->get_option_key();
do_action( 'woocommerce_update_option', array( 'id' => $option_key ) );
return update_option( $option_key, apply_filters( 'woocommerce_settings_api_sanitized_fields_' . $this->id, $this->settings ), 'yes' );
}
/**