Skip to content

Commit

Permalink
feature: register table names
Browse files Browse the repository at this point in the history
  • Loading branch information
alaca committed Aug 27, 2024
1 parent bec28b8 commit 0516133
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion src/Campaigns/ServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ class ServiceProvider implements ServiceProviderInterface
*/
public function register(): void
{
//
$this->registerTableNames();
}

/**
Expand Down Expand Up @@ -49,6 +49,18 @@ private function registerMigrations(): void
);
}


/**
* @unreleased
*/
private function registerTableNames(): void
{
global $wpdb;

$wpdb->give_campaigns = $wpdb->prefix . 'give_campaigns';
$wpdb->give_campaign_forms = $wpdb->prefix . 'give_campaign_forms';
}

/**
* @unreleased
*/
Expand Down

0 comments on commit 0516133

Please sign in to comment.