SetUpAdditionalPaymentTypes

Set_Up_Additional_Payment_Types


Description Description


Source Source

File: packages/woocommerce-admin/src/Notes/SetUpAdditionalPaymentTypes.php


			

Top ↑

Methods Methods

  • __construct — Constructor.
  • get_note — Get the note.
  • on_activate_wcpay — Executes when the WooCommerce Payments plugin is activated. It does nothing if WooCommerce Payments plugin is not included in onboarding business extensions, otherwise it possibly adds the note if it isn't already in the database and if it matches any criteria (see get_note()).
  • on_deactivate_wcpay — Executes when the WooCommerce Payments plugin is deactivated. Possibly hard-deletes the note if it is in the database. Hard-delete is used instead of soft-delete or actioning the note because we need to show the note if the plugin is activated again.

Top ↑

User Contributed Notes User Contributed Notes

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