Events_Manager.php
946 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
<?php
namespace EM\Thrive\Automator\Apps;
use Thrive\Automator\Items\App;
if ( ! defined( 'ABSPATH' ) ) {
exit; // Silence is golden!
}
class Events_Manager extends App {
public static function get_id() {
return 'events-manager';
}
public static function get_name() {
return 'Events Manager';
}
public static function get_description() {
return __('Integration with Events Manager Plugin', 'events-manager-for-thrive-automator');
}
public static function get_logo() {
return 'https://ps.w.org/events-manager/assets/logo-260x260.png';
}
/**
* Whether the current App is available for the current user
* e.g prevent premium items from being shown to free users
*
* @return bool
*/
public static function has_access() {
return defined('EM_VERSION') && version_compare(EM_VERSION, '6.1.5.1', '>=');
}
public static function get_acccess_url() {
return 'https://wordpress.org/plugins/events-manager/';
}
}