updated plugin Easy Digital Downloads
version 3.1.1.2
This commit is contained in:
64
wp-content/plugins/easy-digital-downloads/src/Core.php
Normal file
64
wp-content/plugins/easy-digital-downloads/src/Core.php
Normal file
@ -0,0 +1,64 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Core class for adding event subscribers.
|
||||
*
|
||||
* @since 3.1.1
|
||||
* @package EDD
|
||||
*/
|
||||
namespace EDD;
|
||||
|
||||
class Core extends EventManagement\Subscribers {
|
||||
|
||||
/**
|
||||
* Gets the service providers for EDD.
|
||||
*
|
||||
* @return array
|
||||
*/
|
||||
protected function get_service_providers() {
|
||||
return array(
|
||||
new Admin\PassHandler\Ajax( $this->pass_handler ),
|
||||
new Admin\Extensions\Extension_Manager(),
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the admin service providers.
|
||||
*
|
||||
* @since 3.1.1
|
||||
* @return array
|
||||
*/
|
||||
protected function get_admin_providers() {
|
||||
if ( ! is_admin() ) {
|
||||
return array();
|
||||
}
|
||||
|
||||
return array(
|
||||
new Admin\PassHandler\Settings( $this->pass_handler ),
|
||||
new Admin\PassHandler\Actions( $this->pass_handler ),
|
||||
new Admin\Extensions\Menu(),
|
||||
new Admin\Settings\EmailMarketing(),
|
||||
new Admin\Settings\Invoices(),
|
||||
new Admin\Settings\Recurring(),
|
||||
new Admin\Settings\Reviews(),
|
||||
new Admin\Settings\WP_SMTP(),
|
||||
new Admin\Downloads\Meta(),
|
||||
new Admin\Onboarding\Tools(),
|
||||
new Admin\Onboarding\Wizard(),
|
||||
new Admin\Onboarding\Ajax(),
|
||||
new Licensing\Ajax(),
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets providers that may be extended/replaced in lite/pro.
|
||||
*
|
||||
* @return array
|
||||
*/
|
||||
protected function get_replaceable_providers() {
|
||||
return array(
|
||||
new Admin\Extensions\Legacy(),
|
||||
new Admin\Promos\PromoHandler(),
|
||||
);
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user