'Settings',
// 'docs' => 'Docs',
'create_app' => 'Create App'
),
$links
);
}
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" );
}
}
function appmaker_wp_plugin_activated( $plugin ) {
if ( $plugin == plugin_basename( __FILE__ ) ) {
do_action( 'APPMAKER_WC_Plugin_activate' );
wp_safe_redirect( admin_url( 'options-general.php?page=appmaker-wp-admin' ) );
exit;
}
}
add_action( 'activated_plugin', 'appmaker_wp_plugin_activated' );
APPMAKER_WP::init();