Skip to content

Commit

Permalink
remove hooks even later and set onboarding redirect option to false
Browse files Browse the repository at this point in the history
modules aren't loaded until after_theme_setup 100, so we can't run until after that
  • Loading branch information
circlecube committed May 30, 2024
1 parent 097f6c2 commit e9bfaef
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions bootstrap.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ function () {

// Late hooks
add_action(
'plugins_loaded',
'after_setup_theme',
function () {
if ( 'atomic' === getContext( 'platform' ) ) {

Expand All @@ -54,8 +54,10 @@ function () {
array( 'NewfoldLabs\WP\Module\Onboarding\LoginRedirect', 'remove_handle_redirect_action' )
);

// Set option to not perform onboarding redirect too
update_option( 'nfd_module_onboarding_should_redirect', '0' );
}
},
11
101
);
}

0 comments on commit e9bfaef

Please sign in to comment.