-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmpress-hide-from-search.php
40 lines (35 loc) · 1.23 KB
/
mpress-hide-from-search.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
<?php
/**
* Hide from Search
*
* @package HideFromSearch
* @author Micah Wood
* @copyright Copyright 2020-2023 by Micah Wood - All rights reserved.
* @license GPL2.0-or-later
*
* @wordpress-plugin
* Plugin Name: Hide from Search
* Plugin URI: https://wordpress.org/plugins/mpress-hide-from-search/
* Description: Hide individual WordPress pages from search engines and/or WordPress search results.
* Version: 1.1.7
* Requires PHP: 7.4
* Requires at least: 6.0
* Author: Micah Wood
* Author URI: https://wpscholar.com
* Text Domain: mpress-hide-from-search
* Domain Path: /languages
* License: GPL V2 or later
* License URI: https://www.gnu.org/licenses/gpl-2.0.html
*/
define( 'HIDE_FROM_SEARCH_VERSION', '1.1.7' );
define( 'HIDE_FROM_SEARCH_FILE', __FILE__ );
require __DIR__ . '/vendor/autoload.php';
// Check plugin requirements
global $pagenow;
if ( 'plugins.php' === $pagenow ) {
$plugin_check = new WP_Forge_Plugin_Check( __FILE__ );
$plugin_check->min_php_version = '7.4';
$plugin_check->min_wp_version = '6.0';
$plugin_check->check_plugin_requirements();
}
require __DIR__ . '/includes/Plugin.php';