mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-05 08:59:14 +08:00
Add init inside migrate action
This commit is contained in:
parent
2c8d0fcf8a
commit
dddc8d6cf6
1 changed files with 7 additions and 2 deletions
|
@ -60,8 +60,13 @@ class VaultingModule implements ModuleInterface {
|
||||||
add_action(
|
add_action(
|
||||||
'woocommerce_paypal_payments_gateway_migrate',
|
'woocommerce_paypal_payments_gateway_migrate',
|
||||||
function () {
|
function () {
|
||||||
add_rewrite_endpoint( 'ppcp-paypal-payment-tokens', EP_PAGES );
|
add_action(
|
||||||
flush_rewrite_rules();
|
'init',
|
||||||
|
function () {
|
||||||
|
add_rewrite_endpoint( 'ppcp-paypal-payment-tokens', EP_PAGES );
|
||||||
|
flush_rewrite_rules();
|
||||||
|
}
|
||||||
|
);
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue