Skip to content

Commit 5043b9e

Browse files
authored
Merge pull request #680 from newfold-labs/fix/ctbs
Fix CTBs for new customers
2 parents a76045c + 67f6555 commit 5043b9e

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

bootstrap.php

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,4 +72,12 @@ 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 so CTBs are accessible right away
77+
add_action(
78+
'newfold/onboarding/completed',
79+
function () {
80+
delete_transient( 'nfd_site_capabilities' );
81+
}
82+
);
7583
}

0 commit comments

Comments
 (0)