Skip to content

Commit 823c596

Browse files
committed
Clear the site capabilities when onboarding completes to customers can use CTBs right away
1 parent a76045c commit 823c596

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

bootstrap.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,4 +72,9 @@ function nfd_wp_module_onboarding_register() {
7272
);
7373
// Handle Module Disable if Non-Ecommerce
7474
ModuleController::init();
75+
76+
// Clear site capabilities transient after onboarding is completed
77+
add_action('newfold/onboarding/completed', function() {
78+
delete_transient( 'nfd_site_capabilities' );
79+
});
7580
}

0 commit comments

Comments
 (0)