-
Notifications
You must be signed in to change notification settings - Fork 1
/
main.php
33 lines (26 loc) · 1.23 KB
/
main.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
<?php if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
/*
Plugin Name: Bookly
Plugin URI: http://booking-wp-plugin.com
Description: Bookly Plugin – is a great easy-to-use and easy-to-manage booking tool for service providers who think about their customers. The plugin supports a wide range of services provided by business and individuals who offer reservations through websites. Set up any reservation quickly, pleasantly and easily with Bookly!
Version: 8.5.1
Author: Ladela Interactive
Author URI: http://www.ladela.com
Text Domain: bookly
Domain Path: /languages
License: Commercial
*/
define( 'AB_PATH', __DIR__ );
include 'autoload.php';
include 'installer.php';
include 'updates.php';
// Fix possible errors (appearing if "Nextgen Gallery" Plugin is installed) when Bookly is being updated.
add_filter( 'http_request_args', function ( $args ) { $args['reject_unsafe_urls'] = false; return $args; } );
add_action( 'plugins_loaded', function () {
// l10n.
load_plugin_textdomain( 'bookly', false, basename( AB_PATH ) . '/languages/bookly-pt_BR.po' );
// Update DB.
Bookly\plugin_update_db();
} );
\Bookly\Lib\Plugin::registerHooks();
is_admin() ? new \Bookly\Backend\Backend() : new \Bookly\Frontend\Frontend();