-
Notifications
You must be signed in to change notification settings - Fork 6
/
search-exclude.php
80 lines (76 loc) · 2.71 KB
/
search-exclude.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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
<?php
/**
* Plugin Name: Search Exclude
* Plugin URI: https://wordpress.org/plugins/search-exclude
* Description: Hide any page or post from the WordPress search results by checking off the checkbox.
* Version: 2.3.0
* Text Domain: search-exclude
* Author: QuadLayers
* Author URI: https://quadlayers.com
* License: GPLv3
* Domain Path: /languages
* Request at least: 4.7
* Tested up to: 6.7
* Requires PHP: 5.6
*/
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
/**
* Definition globals variables
*/
define( 'QLSE_PLUGIN_NAME', 'Search Exclude' );
define( 'QLSE_PLUGIN_VERSION', '2.3.0' );
define( 'QLSE_PLUGIN_FILE', __FILE__ );
define( 'QLSE_PLUGIN_DIR', __DIR__ . DIRECTORY_SEPARATOR );
define( 'QLSE_DOMAIN', 'qlse' );
define( 'QLSE_PREFIX', QLSE_DOMAIN );
define( 'QLSE_WORDPRESS_URL', 'https://wordpress.org/plugins/search-exclude/' );
define( 'QLSE_REVIEW_URL', 'https://wordpress.org/support/plugin/search-exclude/reviews/?filter=5#new-post' );
define( 'QLSE_DEMO_URL', 'https://quadlayers.com/demo/search-exclude/?utm_source=qlse_admin' );
define( 'QLSE_PURCHASE_URL', 'https://quadlayers.com/?utm_source=qlse_admin' );
define( 'QLSE_SUPPORT_URL', 'https://quadlayers.com/account/support/?utm_source=qlse_admin' );
define( 'QLSE_DOCUMENTATION_URL', 'https://quadlayers.com/documentation/search-exclude/?utm_source=qlse_admin' );
define( 'QLSE_DOCUMENTATION_API_URL', 'https://quadlayers.com/documentation/search-exclude/api/?utm_source=qlse_admin' );
define( 'QLSE_DOCUMENTATION_ACCOUNT_URL', 'https://quadlayers.com/documentation/search-exclude/account/?utm_source=qlse_admin' );
define( 'QLSE_GROUP_URL', 'https://www.facebook.com/groups/quadlayers' );
define( 'QLSE_PREMIUM_SELL_URL', '' );
define( 'QLSE_DEVELOPER', false );
/**
* Load composer autoload
*/
require_once __DIR__ . '/vendor/autoload.php';
/**
* Load compatibility
*/
require_once __DIR__ . '/compatibility/old.php';
/**
* Load vendor_packages packages
*/
require_once __DIR__ . '/vendor_packages/wp-i18n-map.php';
require_once __DIR__ . '/vendor_packages/wp-dashboard-widget-news.php';
require_once __DIR__ . '/vendor_packages/wp-plugin-table-links.php';
require_once __DIR__ . '/vendor_packages/wp-plugin-install-tab.php';
require_once __DIR__ . '/vendor_packages/wp-notice-plugin-promote.php';
/**
* Load plugin classes
*/
require_once __DIR__ . '/lib/class-plugin.php';
/**
* On plugin activation
*/
register_activation_hook(
__FILE__,
function () {
do_action( 'qlse_activation' );
}
);
/**
* On plugin deactivation
*/
register_deactivation_hook(
__FILE__,
function () {
do_action( 'qlse_deactivation' );
}
);