PluginProbe
AppMySite – WordPress & WooCommerce Mobile App Builder (No-Code Android & iOS App Maker) / 3.9.0
AppMySite – WordPress & WooCommerce Mobile App Builder (No-Code Android & iOS App Maker) v3.9.0
3.15.4 trunk 2.0.0 2.1.0 2.10.0 2.11.0 2.2.0 2.3.0 2.4.0 2.4.1 2.5.0 2.6.0 2.6.1 2.7.0 2.8.0 2.8.1 2.9.0 2.9.1 3.0.0 3.0.1 3.1.0 3.10.0 3.11.0 3.11.1 3.11.2 All 48 releases
appmysite / appmysite.php

appmysite.php in AppMySite – WordPress & WooCommerce Mobile App Builder (No-Code Android & iOS App Maker) 3.9.0, at appmysite.php

78 lines 2.5 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * Plugin Name: AppMySite
4 * Plugin URI: https://www.appmysite.com
5 * Description: This plugin enables WordPress & WooCommerce users to sync their websites with native iOS and Android apps, created on <a href="https://www.appmysite.com/"><strong>www.appmysite.com</strong></a>
6 * Version: 3.9.0
7 * Author: AppMySite
8 * Text Domain: appmysite
9 * Author URI: https://appmysite.com
10 * Tested up to: 6.1.1
11 * WC tested up to: 7.3.0
12 * WC requires at least: 3.8.0
13 * License: GPL v2 or later
14 * License URI: https://www.gnu.org/licenses/gpl-2.0.html
15 **/
16
17 // If this file is called directly, abort.
18 if ( ! defined( 'WPINC' ) ) {
19 die( 'No script kiddies please!' );
20 }
21
22 if ( ! defined( 'AMS_PLUGIN_DIR' ) ) {
23 define( 'AMS_PLUGIN_DIR', __FILE__ );
24 }
25
26 /******************************************************************************
27 * Show warning to all where WordPress version is below minimum requirement.
28 */
29
30 global $wp_version;
31 if ( $wp_version <= 4.9 ) {
32 function wo_incompatibility_with_wp_version() {
33 ?>
34 <div class="notice notice-error">
35 <p><?php esc_html_e( 'AppMySite requires that WordPress 4.9 or greater be used. Update to the latest WordPress version.', 'appmysite' ); ?>
36 <a href="<?php echo esc_url( admin_url( 'update-core.php' ) ); ?>"><?php esc_html_e( 'Update Now', 'appmysite' ); ?></a></p>
37 </div>
38 <?php
39 }
40
41 add_action( 'admin_notices', 'wo_incompatibility_with_wp_version' );
42 }
43
44 // Include the main AMS_Rest_Routes class.
45 if ( ! class_exists( 'AMS_Rest_Routes', false ) ) {
46 include_once dirname( AMS_PLUGIN_DIR ) . '/includes/class-ams-rest-routes.php';
47 new AMS_Rest_Routes();
48 }
49
50 // Include the main AMS_Register_Rest_Fields class.
51 if ( ! class_exists( 'AMS_Register_Rest_Fields', false ) ) {
52 include_once dirname( AMS_PLUGIN_DIR ) . '/includes/class-ams-rest-register-fields.php';
53 new AMS_Register_Rest_Fields();
54 }
55
56 // Include the main AMS_Filters class.
57 if ( ! class_exists( 'AMS_Filters', false ) ) {
58 include_once dirname( AMS_PLUGIN_DIR ) . '/includes/class-ams-filters.php';
59 new AMS_Filters();
60 }
61
62
63 // Include the main AMS_Admin_Functions class.
64 if ( ! class_exists( 'AMS_Admin_Functions', false ) ) {
65 include_once dirname( AMS_PLUGIN_DIR ) . '/includes/class-ams-admin-functions.php';
66 new AMS_Admin_Functions();
67 }
68
69
70 // Include the main AMS_Admin_Scripts class.
71 if ( ! class_exists( 'AMS_Admin_Scripts', false ) ) {
72 include_once dirname( AMS_PLUGIN_DIR ) . '/includes/class-ams-admin-scripts.php';
73 new AMS_Admin_Scripts();
74 }
75
76
77
78