PluginProbe
Tag, Category, and Taxonomy Manager – Autotagger Automatically Add Terms / 3.4.5
Tag, Category, and Taxonomy Manager – Autotagger Automatically Add Terms v3.4.5
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.5, at simple-tags.php

140 lines 4.1 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.5
7 * Author: TaxoPress
8 * Author URI: https://taxopress.com
9 * Text Domain: simple-tags
10 * Domain Path: /languages
11 * Min WP Version: 4.9.7
12 * Requires PHP: 5.6
13 * License: GPLv3
14 *
15 * Copyright (c) 2022 Taxopress
16 *
17 * ------------------------------------------------------------------------------
18 * Based on Organize Series
19 * Author: Darren Ethier
20 * Copyright (c) 2007, 2011 Darren Ethier
21 * ------------------------------------------------------------------------------
22 *
23 * @package simple-tags
24 * @author TaxoPress
25 * @copyright Copyright (C) 2007, 2011 Darren Ethier; modifications Copyright (C) 2022 TaxoPress
26 * @license GNU General Public License version 2
27 * @link https://taxoPress.com/
28 */
29
30 ######################################
31 /*
32 This program is free software; you can redistribute it and/or modify
33 it under the terms of the GNU General Public License as published by
34 the Free Software Foundation; either version 2 of the License, or
35 (at your option) any later version.
36
37 This program is distributed in the hope that it will be useful,
38 but WITHOUT ANY WARRANTY; without even the implied warranty of
39 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
40 GNU General Public License for more details.
41
42 Contributors to the TaxoPress code include:
43 - Kevin Drouvin (kevin.drouvin@gmail.com - http://inside-dev.net)
44 - Martin Modler (modler@webformatik.com - http://www.webformatik.com)
45 - Vladimir Kolesnikov (vladimir@extrememember.com - http://blog.sjinks.pro)
46
47 Sections of the TaxoPress code are based on Custom Post Type UI by WebDevStudios.
48
49 Credits Icons :
50 - famfamfam - http://www.famfamfam.com/lab/icons/silk/
51
52 */
53
54 // don't load directly
55 if (!defined('ABSPATH')) {
56 die('-1');
57 }
58
59 if (!defined('STAGS_VERSION')) {
60 define('STAGS_VERSION', '3.4.5');
61 }
62
63
64 $pro_active = false;
65
66 foreach ((array)get_option('active_plugins') as $plugin_file) {
67 if (false !== strpos($plugin_file, 'taxopress-pro.php')) {
68 $pro_active = true;
69 break;
70 }
71 }
72
73 if (!$pro_active && is_multisite()) {
74 foreach (array_keys((array)get_site_option('active_sitewide_plugins')) as $plugin_file) {
75 if (false !== strpos($plugin_file, 'taxopress-pro.php')) {
76 $pro_active = true;
77 break;
78 }
79 }
80 }
81
82 if ($pro_active) {
83 add_filter(
84 'plugin_row_meta',
85 function($links, $file)
86 {
87 if ($file == plugin_basename(__FILE__)) {
88 $links[]= __('<strong>This plugin can be deleted.</strong>', 'simple-tags');
89 }
90
91 return $links;
92 },
93 10, 2
94 );
95 }
96
97 if (defined('TAXOPRESS_FILE') || $pro_active) {
98 return;
99 }
100
101
102
103 define ( 'TAXOPRESS_FILE', __FILE__ );
104
105 define('STAGS_MIN_PHP_VERSION', '5.6');
106 define('STAGS_OPTIONS_NAME', 'simpletags'); // Option name for save settings
107 define('STAGS_OPTIONS_NAME_AUTO', 'simpletags-auto'); // Option name for save settings auto terms
108
109 define('STAGS_URL', plugins_url('', __FILE__));
110 define('STAGS_DIR', rtrim(plugin_dir_path(__FILE__), '/'));
111 define('TAXOPRESS_ABSPATH', __DIR__);
112
113 // Check PHP min version
114 if (version_compare(PHP_VERSION, STAGS_MIN_PHP_VERSION, '<')) {
115 require STAGS_DIR . '/inc/class.compatibility.php';
116
117 // possibly display a notice, trigger error
118 add_action('admin_init', array('SimpleTags_Compatibility', 'admin_init'));
119
120 // stop execution of this file
121 return;
122 }
123
124 require STAGS_DIR . '/inc/loads.php';
125
126 // Init TaxoPress
127 function init_free_simple_tags()
128 {
129 if (is_admin() && !defined('TAXOPRESS_PRO_VERSION')) {
130 require_once(TAXOPRESS_ABSPATH . '/includes-core/TaxopressCoreAdmin.php');
131 new \PublishPress\Taxopress\TaxopressCoreAdmin();
132 }
133 }
134 add_action('plugins_loaded', 'init_free_simple_tags');
135
136 // Activation, uninstall
137 register_activation_hook(__FILE__, array('SimpleTags_Plugin', 'activation'));
138 register_deactivation_hook(__FILE__, array('SimpleTags_Plugin', 'deactivation'));
139
140 add_action('plugins_loaded', 'init_simple_tags');