diff --git a/bootstrap.php b/bootstrap.php index 5841284..a2012e1 100644 --- a/bootstrap.php +++ b/bootstrap.php @@ -6,6 +6,7 @@ use NewfoldLabs\WP\Module\Data\SiteCapabilities; use NewfoldLabs\WP\ModuleLoader\Container; use WP_Forge\UpgradeHandler\UpgradeHandler; +use function NewfoldLabs\WP\ModuleLoader\container; use function NewfoldLabs\WP\ModuleLoader\register as registerModule; @@ -74,6 +75,22 @@ function ( $value ) { } ); + // Temporary filter, as the migrate capability isn't working as expected. + add_filter( + 'pre_set_transient_nfd_site_capabilities', + function ( $transient ) { + if ( empty( $transient ) && 'bluehost' === container()->plugin()->brand ) { + return array( + 'canMigrateSite' => true, + 'hasAISiteGen' => true, + ); + } + return $transient; + }, + 10, + 2 + ); + // Register activation/deactivation hooks add_action( 'newfold_container_set',