| 1 |
<?php |
| 2 |
|
| 3 |
/** |
| 4 |
* Plugin Name: Search Exclude |
| 5 |
* Plugin URI: https://wordpress.org/plugins/search-exclude |
| 6 |
* Description: Hide any page or post from the WordPress search results by checking off the checkbox. |
| 7 |
* Version: 2.6.6 |
| 8 |
* Text Domain: search-exclude |
| 9 |
* Author: QuadLayers |
| 10 |
* Author URI: https://quadlayers.com |
| 11 |
* License: GPLv3 |
| 12 |
* Domain Path: /languages |
| 13 |
* Request at least: 4.7 |
| 14 |
* Tested up to: 7.1 |
| 15 |
* Requires PHP: 5.6 |
| 16 |
*/ |
| 17 |
|
| 18 |
if ( ! defined( 'ABSPATH' ) ) { |
| 19 |
exit; |
| 20 |
} |
| 21 |
|
| 22 |
/** |
| 23 |
* Definition globals variables |
| 24 |
*/ |
| 25 |
define( 'QLSE_PLUGIN_NAME', 'Search Exclude' ); |
| 26 |
define( 'QLSE_PLUGIN_VERSION', '2.6.6' ); |
| 27 |
define( 'QLSE_PLUGIN_FILE', __FILE__ ); |
| 28 |
define( 'QLSE_PLUGIN_BASENAME', plugin_basename( __FILE__ ) ); |
| 29 |
define( 'QLSE_PLUGIN_DIR', __DIR__ . DIRECTORY_SEPARATOR ); |
| 30 |
define( 'QLSE_DOMAIN', 'qlse' ); |
| 31 |
define( 'QLSE_PREFIX', QLSE_DOMAIN ); |
| 32 |
define( 'QLSE_WORDPRESS_URL', 'https://wordpress.org/plugins/search-exclude/' ); |
| 33 |
define( 'QLSE_REVIEW_URL', 'https://wordpress.org/support/plugin/search-exclude/reviews/?filter=5#new-post' ); |
| 34 |
define( 'QLSE_GROUP_URL', 'https://www.facebook.com/groups/quadlayers' ); |
| 35 |
define( 'QLSE_DEVELOPER', false ); |
| 36 |
/** |
| 37 |
* Load composer autoload |
| 38 |
*/ |
| 39 |
require_once __DIR__ . '/vendor/autoload_packages.php'; |
| 40 |
/** |
| 41 |
* Load compatibility |
| 42 |
*/ |
| 43 |
require_once __DIR__ . '/compatibility/old.php'; |
| 44 |
/** |
| 45 |
* Load vendor_packages packages |
| 46 |
*/ |
| 47 |
require_once __DIR__ . '/vendor_packages/wp-i18n-map.php'; |
| 48 |
require_once __DIR__ . '/vendor_packages/wp-dashboard-widget-news.php'; |
| 49 |
require_once __DIR__ . '/vendor_packages/wp-plugin-table-links.php'; |
| 50 |
require_once __DIR__ . '/vendor_packages/wp-plugin-install-tab.php'; |
| 51 |
require_once __DIR__ . '/vendor_packages/wp-notice-plugin-promote.php'; |
| 52 |
require_once __DIR__ . '/vendor_packages/wp-plugin-feedback.php'; |
| 53 |
/** |
| 54 |
* Load plugin classes |
| 55 |
*/ |
| 56 |
require_once __DIR__ . '/lib/class-plugin.php'; |
| 57 |
/** |
| 58 |
* On plugin activation |
| 59 |
*/ |
| 60 |
register_activation_hook( |
| 61 |
__FILE__, |
| 62 |
function () { |
| 63 |
do_action( 'qlse_activation' ); |
| 64 |
} |
| 65 |
); |
| 66 |
/** |
| 67 |
* On plugin deactivation |
| 68 |
*/ |
| 69 |
register_deactivation_hook( |
| 70 |
__FILE__, |
| 71 |
function () { |
| 72 |
do_action( 'qlse_deactivation' ); |
| 73 |
} |
| 74 |
); |
| 75 |
|