diff --git a/src/Campaigns/ServiceProvider.php b/src/Campaigns/ServiceProvider.php index 49e89fab66..8e8935f337 100644 --- a/src/Campaigns/ServiceProvider.php +++ b/src/Campaigns/ServiceProvider.php @@ -19,7 +19,7 @@ class ServiceProvider implements ServiceProviderInterface */ public function register(): void { - // + $this->registerTableNames(); } /** @@ -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 */