| 1 |
<?php |
| 2 |
require_once __DIR__ . '/asking-for-review.php'; |
| 3 |
require_once __DIR__ . '/offer.php'; |
| 4 |
require_once __DIR__ . '/bbPress-required.php'; |
| 5 |
require_once __DIR__ . '/deactivate-other-forum-plugins.php'; |
| 6 |
require_once __DIR__ . '/class-remote-notice-client.php'; |
| 7 |
require_once __DIR__ . '/update-notice.php'; |
| 8 |
require_once __DIR__ . '/theme-compatibility.php'; |
| 9 |
|
| 10 |
// Disable notices when Pro is active |
| 11 |
add_action('plugins_loaded', function () { |
| 12 |
if ( |
| 13 |
(function_exists('forumax_is_premium') && forumax_is_premium()) |
| 14 |
|| |
| 15 |
(function_exists('forumax_is_promax') && forumax_is_promax()) |
| 16 |
) { |
| 17 |
Remote_Notice_Client::disable('Forumax'); |
| 18 |
return; |
| 19 |
} else { |
| 20 |
Remote_Notice_Client::enable('Forumax'); |
| 21 |
} |
| 22 |
|
| 23 |
|
| 24 |
Remote_Notice_Client::init('Forumax', [ |
| 25 |
'api_url' => 'https://manage.spider-themes.net/wp-json/html-notice-widget/v1/content/forumax', |
| 26 |
]); |
| 27 |
}); |
| 28 |
|