PluginProbe
Tag, Category, and Taxonomy Manager – Autotagger Automatically Add Terms / 3.4.1
Tag, Category, and Taxonomy Manager – Autotagger Automatically Add Terms v3.4.1
3.53.0 3.52.0 3.51.0 3.50.0 3.45.0 3.38.0 3.4.0 3.4.1 3.4.2 3.4.3 3.4.4 3.4.5 3.40.0 3.40.1 3.41.0 3.42.0 3.43.0 3.44.0 3.5.0 3.5.1 3.5.2 3.5.3 3.6.0 3.6.1 3.6.2 All 177 releases
simple-tags / simple-tags.php

simple-tags.php in Tag, Category, and Taxonomy Manager – Autotagger Automatically Add Terms 3.4.1, at simple-tags.php

123 lines 3.6 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /*
3 Plugin Name: TaxoPress
4 Plugin URI: https://wordpress.org/plugins/simple-tags/
5 Description: Extended Tag Manager. Terms suggestion, Mass Edit Terms, Auto link Terms, Ajax Autocompletion, Click Terms, Advanced manage terms, etc.
6 Version: 3.4.1
7 Requires PHP: 5.6
8 Requires at least: 3.3
9 Tested up to: 5.6
10 Author: TaxoPress
11 Author URI: https://taxopress.com
12 Text Domain: simple-tags
13
14 Copyright 2013-2021 TaxoPress
15
16 This program is free software; you can redistribute it and/or modify
17 it under the terms of the GNU General Public License as published by
18 the Free Software Foundation; either version 2 of the License, or
19 (at your option) any later version.
20
21 This program is distributed in the hope that it will be useful,
22 but WITHOUT ANY WARRANTY; without even the implied warranty of
23 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
24 GNU General Public License for more details.
25
26 Contributors to the TaxoPress code include:
27 - Kevin Drouvin (kevin.drouvin@gmail.com - http://inside-dev.net)
28 - Martin Modler (modler@webformatik.com - http://www.webformatik.com)
29 - Vladimir Kolesnikov (vladimir@extrememember.com - http://blog.sjinks.pro)
30
31 Sections of the TaxoPress code are based on Custom Post Type UI by WebDevStudios.
32
33 Credits Icons :
34 - famfamfam - http://www.famfamfam.com/lab/icons/silk/
35 */
36
37 // don't load directly
38 if (!defined('ABSPATH')) {
39 die('-1');
40 }
41
42 if (!defined('STAGS_VERSION')) {
43 define('STAGS_VERSION', '3.4.1');
44 }
45
46
47 $pro_active = false;
48
49 foreach ((array)get_option('active_plugins') as $plugin_file) {
50 if (false !== strpos($plugin_file, 'taxopress-pro.php')) {
51 $pro_active = true;
52 break;
53 }
54 }
55
56 if (!$pro_active && is_multisite()) {
57 foreach (array_keys((array)get_site_option('active_sitewide_plugins')) as $plugin_file) {
58 if (false !== strpos($plugin_file, 'taxopress-pro.php')) {
59 $pro_active = true;
60 break;
61 }
62 }
63 }
64
65 if ($pro_active) {
66 add_filter(
67 'plugin_row_meta',
68 function($links, $file)
69 {
70 if ($file == plugin_basename(__FILE__)) {
71 $links[]= __('<strong>This plugin can be deleted.</strong>', 'simple-tags');
72 }
73
74 return $links;
75 },
76 10, 2
77 );
78 }
79
80 if (defined('TAXOPRESS_FILE') || $pro_active) {
81 return;
82 }
83
84
85
86 define ( 'TAXOPRESS_FILE', __FILE__ );
87
88 define('STAGS_MIN_PHP_VERSION', '5.6');
89 define('STAGS_OPTIONS_NAME', 'simpletags'); // Option name for save settings
90 define('STAGS_OPTIONS_NAME_AUTO', 'simpletags-auto'); // Option name for save settings auto terms
91
92 define('STAGS_URL', plugins_url('', __FILE__));
93 define('STAGS_DIR', rtrim(plugin_dir_path(__FILE__), '/'));
94 define('TAXOPRESS_ABSPATH', __DIR__);
95
96 // Check PHP min version
97 if (version_compare(PHP_VERSION, STAGS_MIN_PHP_VERSION, '<')) {
98 require STAGS_DIR . '/inc/class.compatibility.php';
99
100 // possibly display a notice, trigger error
101 add_action('admin_init', array('SimpleTags_Compatibility', 'admin_init'));
102
103 // stop execution of this file
104 return;
105 }
106
107 require STAGS_DIR . '/inc/loads.php';
108
109 // Init TaxoPress
110 function init_free_simple_tags()
111 {
112 if (is_admin() && !defined('TAXOPRESS_PRO_VERSION')) {
113 require_once(TAXOPRESS_ABSPATH . '/includes-core/TaxopressCoreAdmin.php');
114 new \PublishPress\Taxopress\TaxopressCoreAdmin();
115 }
116 }
117 add_action('plugins_loaded', 'init_free_simple_tags');
118
119 // Activation, uninstall
120 register_activation_hook(__FILE__, array('SimpleTags_Plugin', 'activation'));
121 register_deactivation_hook(__FILE__, array('SimpleTags_Plugin', 'deactivation'));
122
123 add_action('plugins_loaded', 'init_simple_tags');