Skip to content

Commit

Permalink
handle switching to the new customer data module
Browse files Browse the repository at this point in the history
  • Loading branch information
arunshenoy99 committed Jan 11, 2023
1 parent bb9ed1a commit f710a06
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions includes/Data/Data.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
namespace NewfoldLabs\WP\Module\Onboarding\Data;

use NewfoldLabs\WP\Module\Onboarding\Permissions;
use Bluehost\WP\Data\Customer;
use NewfoldLabs\WP\Module\CustomerBluehost\CustomerBluehost;

/**
* CRUD methods for Onboarding config for use in API, CLI and runtime.
Expand Down Expand Up @@ -103,8 +103,8 @@ public static function current_flow() {
* @return array
*/
public static function customer_data() {
if ( class_exists( 'Bluehost\WP\Data\Customer' ) ) {
return Customer::collect();
if ( class_exists( 'NewfoldLabs\WP\Module\CustomerBluehost\CustomerBluehost' ) ) {
return CustomerBluehost::collect();
}
return array();
}
Expand Down

0 comments on commit f710a06

Please sign in to comment.