-
Notifications
You must be signed in to change notification settings - Fork 3
/
restaurantpress.php
42 lines (37 loc) · 1.03 KB
/
restaurantpress.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
<?php
/**
* Plugin Name: RestaurantPress
* Plugin URI: https://wpeverest.com/wordpress-plugins/restaurantpress/
* Description: Allows you to create awesome restaurant menus for restaurants, bars, and cafes in no time. Smartly :)
* Version: 1.8.1
* Author: WPEverest
* Author URI: https://wpeverest.com
* Text Domain: restaurantpress
* Domain Path: /languages/
*
* @package RestaurantPress
*/
if ( ! defined( 'ABSPATH' ) ) {
exit; // Exit if accessed directly.
}
// Define RP_PLUGIN_FILE.
if ( ! defined( 'RP_PLUGIN_FILE' ) ) {
define( 'RP_PLUGIN_FILE', __FILE__ );
}
// Include the main RestaurantPress class.
if ( ! class_exists( 'RestaurantPress' ) ) {
include_once dirname( __FILE__ ) . '/includes/class-restaurantpress.php';
}
/**
* Main instance of RestaurantPress.
*
* Returns the main instance of RP to prevent the need to use globals.
*
* @since 1.0.0
* @return RestaurantPress
*/
function rp() {
return RestaurantPress::get_instance();
}
// Global for backwards compatibility.
$GLOBALS['restaurantpress'] = rp();