'Settings',
// 'docs' => 'Docs',
'create_app' => 'Create App'),
$links
);
}
public static function compatible_version()
{
if (version_compare($GLOBALS['wp_version'], '4.4', '<')) {
return false;
}
return true;
}
public static function disabled_notice()
{
$class = 'notice notice-error';
$message = __('Appmaker WP Mobile App Manager WordPress 4.4 or higher', 'appmaker_wp' );
printf( '
', $class, $message);
}
public static function activated()
{
if (!self::compatible_version()) {
deactivate_plugins(plugin_basename(__FILE__));
add_action('admin_notices', self::func('disabled_notice'));
wp_die(__('Appmaker Mobile App Manager requires WordPress 4.4 or higher. Contact support@appmaker.xyz for more information', 'appmaker_wp'));
}
do_action("appmaker_wp_plugin_activate");
}
public static function uninstall()
{
// flush_rewrite_rules();
do_action("appmaker_wp_plugin_uninstall");
}
public static function deactivate()
{
do_action("appmaker_wp_plugin_deactivate");
}
}
APPMAKER_WP::init();