/var/www/vhosts/ihelp.ro/ajutam.ro/wp-content/plugins/give/src/Revenue
NameSizeModeActions
Listeners/-0755rm
Migrations/-0755rm
Repositories/-0755rm
DonationHandler.php11530644editdlrm
RevenueServiceProvider.php14650644editdlrm
Edit: /var/www/vhosts/ihelp.ro/ajutam.ro/wp-content/plugins/give/src/Revenue/RevenueServiceProvider.php (1465B)
give_revenue = "{$wpdb->prefix}give_revenue"; } /** * @inheritDoc * * @since 2.9.0 */ public function boot() { $this->registerMigrations(); Hooks::addAction('delete_post', DeleteRevenueWhenDonationDeleted::class, '__invoke', 10, 1); Hooks::addAction('give_insert_payment', DonationHandler::class, 'handle', 999, 1); Hooks::addAction('give_register_updates', AddPastDonationsToRevenueTable::class, 'register', 10, 1); } /** * Registers database migrations with the MigrationsRunner */ private function registerMigrations() { /** @var MigrationsRegister $register */ $register = give(MigrationsRegister::class); $register->addMigrations( [ CreateRevenueTable::class, RemoveRevenueForeignKeys::class, ] ); } }