SetUpAdditionalPaymentTypes
Set_Up_Additional_Payment_Types
Description Description
Source Source
File: packages/woocommerce-admin/src/Notes/SetUpAdditionalPaymentTypes.php
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.