| @@ -2,9 +2,9 @@ | ||
| 2 | 2 | /* |
| 3 | 3 | Plugin Name: WPSchoolPress |
| 4 | 4 | Plugin URI: http://wpschoolpress.com |
| 5 | 5 | Description: WPSchoolpress is a school management system plugin that makes school activities transparent to parents. For more information please visit our website. |
| 6 | -Version: 2.2.43 | |
| 6 | +Version: 2.2.48 | |
| 7 | 7 | Author: WPSchoolPress Team |
| 8 | 8 | Author URI: wpschoolpress.com |
| 9 | 9 | Text Domain: wpschoolpress |
| 10 | 10 | Domain Path: languages |
| @@ -15,9 +15,9 @@ | ||
| 15 | 15 | /** |
| 16 | 16 | * Basic plugin definitions |
| 17 | 17 | * |
| 18 | 18 | * @package WPSchoolPress |
| 19 | - * @since 2.2.43 | |
| 19 | + * @since 2.2.48 | |
| 20 | 20 | */ |
| 21 | 21 | if (!defined('WPSP_PLUGIN_URL')) |
| 22 | 22 | { |
| 23 | 23 | define('WPSP_PLUGIN_URL', plugin_dir_url(__FILE__)); |
| @@ -27,9 +27,9 @@ | ||
| 27 | 27 | define('WPSP_PLUGIN_PATH', plugin_dir_path(__FILE__)); |
| 28 | 28 | } |
| 29 | 29 | if (!defined('WPSP_PLUGIN_VERSION')) |
| 30 | 30 | { |
| 31 | - define('WPSP_PLUGIN_VERSION', '2.2.43'); //Plugin version number | |
| 31 | + define('WPSP_PLUGIN_VERSION', '2.2.48'); //Plugin version number | |
| 32 | 32 | } |
| 33 | 33 | define('WPSP_PERMISSION_MSG', 'You don\'t have enough permission to access this page'); |
| 34 | 34 | // Call the required files when plugin activate |
| 35 | 35 | register_activation_hook(__FILE__, 'wpsp_activation'); |
| @@ -242,5 +242,22 @@ | ||
| 242 | 242 | $role->add_cap( 'edit_posts', true ); |
| 243 | 243 | } |
| 244 | 244 | } |
| 245 | 245 | add_action( 'init', 'wpsp_std_role', 11 ); |
| 246 | + | |
| 247 | +// Appsero deactivation block | |
| 248 | +if ( ! class_exists( 'Appsero\Client' ) ) { | |
| 249 | + require_once WPSP_PLUGIN_PATH . 'includes/appsero/src/Client.php'; | |
| 250 | +} | |
| 251 | + | |
| 252 | +function wpsp_lms_appsero_init() { | |
| 253 | + $client = new Appsero\Client( | |
| 254 | + '174e4f64-1448-49aa-98bd-514dff30fd7b', | |
| 255 | + 'School Management System – WPSchoolPress', | |
| 256 | + __FILE__ | |
| 257 | + ); | |
| 258 | + | |
| 259 | + $client->insights()->init(); | |
| 260 | +} | |
| 261 | + | |
| 262 | +wpsp_lms_appsero_init(); | |
| 246 | 263 | ?> |