mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-01 07:02:48 +08:00
🧑💻 Add new hook to configure the plugin
Adds documentation on the onboarding-flow and provides an integration point for own modules and custom code.
This commit is contained in:
parent
21147ae803
commit
c8b46dfcb7
1 changed files with 13 additions and 0 deletions
|
@ -171,6 +171,19 @@ class SettingsDataManager {
|
|||
|
||||
$this->onboarding_profile->set_setup_done( true );
|
||||
$this->onboarding_profile->save();
|
||||
|
||||
/**
|
||||
* Fires after the core merchant configuration was applied.
|
||||
*
|
||||
* This action indicates that a merchant completed the onboarding wizard.
|
||||
* The flags contain several choices which the merchant took during the
|
||||
* onboarding wizard, and provide additional context on which defaults
|
||||
* should be applied for the new merchant.
|
||||
*
|
||||
* Other modules or integrations can use this hook to initialize
|
||||
* additional plugin settings on first merchant login.
|
||||
*/
|
||||
do_action( 'woocommerce_paypal_payments_apply_default_configuration', $flags );
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue