Skip to content

Commit

Permalink
added bh condition
Browse files Browse the repository at this point in the history
  • Loading branch information
ramyakrishnai committed Aug 13, 2024
1 parent 49da226 commit e3460a3
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions includes/Migration.php
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,11 @@ function ( $listeners ) {
add_action( 'rest_api_init', array( $this, 'register_routes' ) );
add_action( 'pre_update_option_nfd_migrate_site', array( $this, 'on_update_nfd_migrate_site' ) );
add_action( 'pre_update_option_instawp_last_migration_details', array( $this, 'on_update_instawp_last_migration_details' ), 10, 1 );
add_action( 'admin_init', array( $this, 'register_wp_migration_tool' ) ); // Adds WordPress Migration tool to imports list
add_action( 'admin_enqueue_scripts', array( $this, 'set_import_tools' ) );
if( $container->plugin()->id === 'bluehost' ){
add_action( 'admin_init', array( $this, 'register_wp_migration_tool' ) ); // Adds WordPress Migration tool to imports list
add_action( 'admin_enqueue_scripts', array( $this, 'set_import_tools' ) );
}

}

/**
Expand Down

0 comments on commit e3460a3

Please sign in to comment.