-
Notifications
You must be signed in to change notification settings - Fork 1
/
uListing.php
43 lines (38 loc) · 1.49 KB
/
uListing.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
43
<?php
/**
* Plugin Name: Listing, Classified Ads & Business Directory – uListing
* Plugin URI: https://wordpress.org/plugins/ulisting/
* Description: uListing - Universal Listing WordPress Plugin. Developing listing and classified ads websites is a lucrative business opportunity, but in the past, it could be complicated to set up and maintain such a site.
* Author: StylemixThemes
* Author URI: https://stylemixthemes.com/
* Text Domain: ulisting
* Version: 2.0.7
*/
if ( ! defined( 'ABSPATH' ) ) exit;
define( 'ULISTING_VERSION', '2.0.7' );
define( 'ULISTING_DB_VERSION', '2.0.6');
define( 'ULISTING_PATH', dirname( __FILE__ ) );
define( 'ULISTING_BASE_URL', '/1/api' );
define( 'ULISTING_URL', plugins_url( '', __FILE__ ) );
define( 'ULISTING_ADMIN_PATH', ULISTING_PATH . '/includes/admin' );
define( 'ULISTING_PLUGIN_FILE', __FILE__ );
if (function_exists('icl_object_id')){
global $sitepress;
define('ULISTING_DEFAULT_LANG', $sitepress->get_default_language());
}else{
define('ULISTING_DEFAULT_LANG', '');
}
if ( ! is_textdomain_loaded( 'ulisting' ) ) {
load_plugin_textdomain(
'ulisting',
false,
'ulisting/language'
);
}
require_once __DIR__ . '/includes/autoload.php';
register_activation_hook( __FILE__, 'uListing_plugin_activation');
register_deactivation_hook( __FILE__, 'uListing_plugin_deactivation');
register_uninstall_hook( __FILE__, 'uListing_plugin_uninstall');
if ( is_admin() ) {
require_once ULISTING_PATH . '/includes/item-announcements.php';
}