PluginProbe
Food Store – Online Food Delivery & Pickup / trunk
Food Store – Online Food Delivery & Pickup vtrunk
1.3.4 1.3.5 1.3.6 1.4 1.4.1 1.4.10 1.4.2 1.4.3 1.4.4 1.4.5 1.4.6 1.4.6.1 1.4.6.2 1.4.7 1.4.7.1 1.4.7.2 1.4.7.3 1.4.7.4 1.4.7.5 1.4.7.6 1.4.7.7 1.4.8 1.4.8.1 1.4.8.2 1.4.8.3 All 38 releases
food-store / food-store.php

food-store.php in Food Store – Online Food Delivery & Pickup trunk, at food-store.php

65 lines 1.8 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * Food Store plugin file.
4 *
5 * @author WP Scripts <@wpscripts>
6 * @package FoodStore
7 * @license GPL-2.0+
8 *
9 * @wordpress-plugin
10 * Plugin Name: Food Store - Online Food Delivery & Pickup
11 * Description: Food Store is complete online food ordering platform with all your favourite WooCommerce functionalities.
12 * Version: 1.5.5
13 * Author: WP Scripts
14 * Text Domain: food-store
15 * Domain Path: /languages/
16 *
17 * WC requires at least: 4.0
18 *
19 * Copyright: 2020 Automatic | 2020 WP Scripts
20 * License: GPL v2 or later
21 *
22 * This program is free software; you can redistribute it and/or modify
23 * it under the terms of the GNU General Public License as published by
24 * the Free Software Foundation; either version 2 of the License, or
25 * (at your option) any later version.
26 *
27 * This program is distributed in the hope that it will be useful,
28 * but WITHOUT ANY WARRANTY; without even the implied warranty of
29 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
30 * GNU General Public License for more details.
31 */
32
33 defined( 'ABSPATH' ) || exit;
34
35 // Define FOOD_STORE_PLUGIN_FILE.
36 if ( ! defined( 'WFS_PLUGIN_FILE' ) ) {
37 define( 'WFS_PLUGIN_FILE', __FILE__ );
38 }
39
40 // include dependencies file.
41 if ( ! class_exists( 'WFS_Dependencies' ) ) {
42 include_once __DIR__ . '/includes/class-food-store-dependencies.php';
43 }
44
45 // Include the main FoodStore class.
46 if ( ! class_exists( 'FoodStore', false ) ) {
47 include_once __DIR__ . '/includes/class-food-store.php';
48 }
49
50 // Added plugin.php file to stop installation if WooCommerce is not activated.
51 require_once ABSPATH . 'wp-admin/includes/plugin.php';
52
53 /**
54 * Returns the main instance of WFC.
55 *
56 * @since 1.0
57 * @return FoodStore
58 */
59 function WFS() {
60 return FoodStore::instance();
61 }
62
63 // Global for backwards compatibility.
64 $GLOBALS['food-store'] = WFS();
65