display-conditions
5 years ago
front
5 years ago
helpers
5 years ago
metas
5 years ago
palettes
5 years ago
provider
5 years ago
providers
5 years ago
templates
5 years ago
update
5 years ago
class-hustle-admin-page-abstract.php
5 years ago
class-hustle-condition-factory.php
6 years ago
class-hustle-dashboard-admin.php
5 years ago
class-hustle-data.php
5 years ago
class-hustle-db.php
6 years ago
class-hustle-module-admin.php
5 years ago
class-hustle-module-collection.php
5 years ago
class-hustle-module-decorator.php
5 years ago
class-hustle-module-page-abstract.php
5 years ago
class-hustle-notifications.php
5 years ago
class-hustle-settings-admin.php
5 years ago
class-hustle-upsell-page.php
5 years ago
class-hustle-wp-dashboard-page.php
5 years ago
hustle-collection.php
6 years ago
hustle-deletion.php
5 years ago
hustle-embedded-admin.php
6 years ago
hustle-entries-admin.php
5 years ago
hustle-entry-model.php
5 years ago
hustle-general-data-protection.php
6 years ago
hustle-init.php
5 years ago
hustle-mail.php
5 years ago
hustle-meta.php
5 years ago
hustle-migration.php
5 years ago
hustle-model.php
5 years ago
hustle-module-model.php
5 years ago
hustle-module-widget-legacy.php
5 years ago
hustle-module-widget.php
5 years ago
hustle-modules-common-admin-ajax.php
5 years ago
hustle-popup-admin.php
6 years ago
hustle-providers-admin.php
5 years ago
hustle-providers.php
6 years ago
hustle-settings-admin-ajax.php
5 years ago
hustle-settings-page.php
5 years ago
hustle-slidein-admin.php
6 years ago
hustle-sshare-admin.php
5 years ago
hustle-sshare-model.php
5 years ago
hustle-tracking-model.php
5 years ago
opt-in-geo.php
5 years ago
opt-in-utils.php
5 years ago
opt-in-wpmudev-api.php
6 years ago
hustle-init.php
65 lines
| 1 | <?php |
| 2 | if ( ! class_exists( 'Hustle_Init' ) ) { |
| 3 | |
| 4 | /** |
| 5 | * Class Hustle_Init |
| 6 | */ |
| 7 | class Hustle_Init { |
| 8 | |
| 9 | /** |
| 10 | * Hustle_Init constructor |
| 11 | */ |
| 12 | public function __construct() { |
| 13 | |
| 14 | Hustle_Db::maybe_create_tables(); |
| 15 | |
| 16 | // Hustle Migration. |
| 17 | new Hustle_Migration(); |
| 18 | |
| 19 | // Admin. |
| 20 | if ( is_admin() ) { |
| 21 | new Hustle_Module_Admin(); |
| 22 | |
| 23 | new Hustle_Dashboard_Admin(); |
| 24 | |
| 25 | new Hustle_Popup_Admin(); |
| 26 | |
| 27 | new Hustle_Slidein_Admin(); |
| 28 | |
| 29 | new Hustle_Embedded_Admin(); |
| 30 | |
| 31 | new Hustle_SShare_Admin(); |
| 32 | |
| 33 | // Global Integrations page. |
| 34 | new Hustle_Providers_Admin(); |
| 35 | |
| 36 | new Hustle_Entries_Admin(); |
| 37 | |
| 38 | new Hustle_Settings_Page(); |
| 39 | |
| 40 | if ( Opt_In_Utils::_is_free() ) { |
| 41 | new Hustle_Upsell_Page(); |
| 42 | } |
| 43 | new Hustle_General_Data_Protection(); |
| 44 | } |
| 45 | |
| 46 | // Front. |
| 47 | new Hustle_Module_Front(); |
| 48 | |
| 49 | // Ajax files. |
| 50 | if ( wp_doing_ajax() ) { |
| 51 | |
| 52 | // Common actions along the modules on admin side. |
| 53 | new Hustle_Modules_Common_Admin_Ajax(); |
| 54 | |
| 55 | // Actions for the global settings page. |
| 56 | new Hustle_Settings_Admin_Ajax(); |
| 57 | |
| 58 | // Actions for frontend. |
| 59 | new Hustle_Module_Front_Ajax(); |
| 60 | } |
| 61 | } |
| 62 | } |
| 63 | |
| 64 | } |
| 65 |