PluginProbe
WP Directory Kit / 1.5.9
WP Directory Kit v1.5.9
1.5.9 1.5.7 1.5.6 1.5.5 1.5.4 1.5.3 trunk 1.1.0 1.1.6 1.1.8 1.2.3 1.2.4 1.2.5 1.2.6 1.2.7 1.2.8 1.2.9 1.3.0 1.3.1 1.3.2 1.3.3 1.3.4 1.3.5 1.3.6 1.3.8 All 37 releases
wpdirectorykit / tgm-pa / configuration.php

configuration.php in WP Directory Kit 1.5.9, at tgm-pa/configuration.php

226 lines 10.0 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 /**
4 * This file represents an example of the code that themes would use to register
5 * the required plugins.
6 *
7 * It is expected that theme authors would copy and paste this code into their
8 * functions.php file, and amend to suit.
9 *
10 * @see http://tgmpluginactivation.com/configuration/ for detailed documentation.
11 *
12 * @package TGM-Plugin-Activation
13 * @subpackage Example
14 * @version 2.6.1 for plugin Wpdirectorykit
15 * @author Thomas Griffin, Gary Jones, Juliette Reinders Folmer
16 * @copyright Copyright (c) 2011, Thomas Griffin
17 * @license http://opensource.org/licenses/gpl-2.0.php GPL v2 or later
18 * @link https://github.com/TGMPA/TGM-Plugin-Activation
19 */
20 if ( ! defined( 'ABSPATH' ) ) exit;
21 /**
22 * Include the TGM_Plugin_Activation class.
23 *
24 * Depending on your implementation, you may want to change the include call:
25 *
26 * Parent Theme:
27 * require_once get_template_directory() . '/path/to/class-tgm-plugin-activation.php';
28 *
29 * Child Theme:
30 * require_once get_stylesheet_directory() . '/path/to/class-tgm-plugin-activation.php';
31 *
32 * Plugin:
33 * require_once dirname( __FILE__ ) . '/path/to/class-tgm-plugin-activation.php';
34 */
35 require_once dirname(__FILE__) . '/class-tgm-plugin-activation.php';
36
37 add_action('tgmpa_register', 'wpdirectorykit_register_required_plugins');
38
39 /**
40 * Register the required plugins for this plugin.
41 *
42 * In this example, we register five plugins:
43 * - one included with the TGMPA library
44 * - two from an external source, one from an arbitrary source, one from a GitHub repository
45 * - two from the .org repo, where one demonstrates the use of the `is_callable` argument
46 *
47 * The variables passed to the `tgmpa()` function should be:
48 * - an array of plugin arrays;
49 * - optionally a configuration array.
50 * If you are not changing anything in the configuration array, you can remove the array and remove the
51 * variable from the function call: `tgmpa( $plugins );`.
52 * In that case, the TGMPA default settings will be used.
53 *
54 * This function is hooked into `tgmpa_register`, which is fired on the WP `init` action on priority 10.
55 */
56 function wpdirectorykit_register_required_plugins()
57 {
58 /*
59 * Array of plugin arrays. Required keys are name and slug.
60 * If the source is NOT from the .org repo, then source is also required.
61 */
62 $plugins = array(
63
64
65 array(
66 'name' => 'Element Invader',
67 'slug' => 'elementinvader',
68 'required' => false,
69 ),
70 array(
71 'name' => 'ElementInvader Addons for Elementor',
72 'slug' => 'elementinvader-addons-for-elementor',
73 'required' => false,
74 ),
75 array(
76 'name' => 'Elementor',
77 'slug' => 'elementor',
78 'required' => false,
79 ),
80 array(
81 'name' => 'Classified Ads',
82 'slug' => 'classified-ads',
83 'required' => false,
84 ),
85 array(
86 'name' => 'Add To Home Screen on iOS and PWA',
87 'slug' => 'add-to-home-screen-on-ios-pwa',
88 'required' => false,
89 ),
90 array(
91 'name' => 'Bikit Business Directory',
92 'slug' => 'bikit-business-directory',
93 'required' => false,
94 ),
95 array(
96 'name' => 'Directorykit Car Dealer Addon',
97 'slug' => 'directorykit-car-dealer-addon',
98 'required' => false,
99 ),
100
101 /*
102 array(
103 'name' => 'Bikit Business Directory',
104 'slug' => 'bikit-business-directory',
105 'required' => false,
106 ),*/
107
108 // This is an example of the use of 'is_callable' functionality. A user could - for instance -
109 // have WPSEO installed *or* WPSEO Premium. The slug would in that last case be different, i.e.
110 // 'wordpress-seo-premium'.
111 // By setting 'is_callable' to either a function from that plugin or a class method
112 // `array( 'class', 'method' )` similar to how you hook in to actions and filters, TGMPA can still
113 // recognize the plugin as being installed.
114
115 /*
116 array(
117 'name' => 'Meta Box',
118 'slug' => 'meta-box',
119 'required' => false,
120 'is_callable' => 'rwmb_meta',
121 ),*/
122
123 );
124
125 /*
126 * Array of configuration settings. Amend each line as needed.
127 *
128 * TGMPA will start providing localized text strings soon. If you already have translations of our standard
129 * strings available, please help us make TGMPA even better by giving us access to these translations or by
130 * sending in a pull-request with .po file(s) with the translations.
131 *
132 * Only uncomment the strings in the config array if you want to customize the strings.
133 */
134 $config = array(
135 'id' => 'wpdirectorykit', // Unique ID for hashing notices for multiple instances of TGMPA.
136 'default_path' => '', // Default absolute path to bundled plugins.
137 'menu' => 'tgmpa-install-plugins', // Menu slug.
138 'parent_slug' => 'plugins.php', // Parent menu slug.
139 'capability' => 'manage_options', // Capability needed to view plugin install page, should be a capability associated with the parent menu used.
140 'has_notices' => true, // Show admin notices or not.
141 'dismissable' => true, // If false, a user cannot dismiss the nag message.
142 'dismiss_msg' => '', // If 'dismissable' is false, this message will be output at top of nag.
143 'is_automatic' => false, // Automatically activate plugins after installation or not.
144 'message' => '', // Message to output right before the plugins table.
145
146 /*
147 'strings' => array(
148 'page_title' => __( 'Install Required Plugins', 'wpdirectorykit' ),
149 'menu_title' => __( 'Install Plugins', 'wpdirectorykit' ),
150 /* translators: %s: plugin name. * /
151 'installing' => __( 'Installing Plugin: %s', 'wpdirectorykit' ),
152 /* translators: %s: plugin name. * /
153 'updating' => __( 'Updating Plugin: %s', 'wpdirectorykit' ),
154 'oops' => __( 'Something went wrong with the plugin API.', 'wpdirectorykit' ),
155 'notice_can_install_required' => _n_noop(
156 /* translators: 1: plugin name(s). * /
157 'Plugin WP Directory Kit requires the following plugin: %1$s.',
158 'Plugin WP Directory Kit requires the following plugins: %1$s.',
159 'wpdirectorykit'
160 ),
161 'notice_can_install_recommended' => _n_noop(
162 /* translators: 1: plugin name(s). * /
163 'Plugin WP Directory Kit recommends the following plugin: %1$s.',
164 'Plugin WP Directory Kit recommends the following plugins: %1$s.',
165 'wpdirectorykit'
166 ),
167 'notice_ask_to_update' => _n_noop(
168 /* translators: 1: plugin name(s). * /
169 'The following plugin needs to be updated to its latest version to ensure maximum compatibility with this plugin: %1$s.',
170 'The following plugins need to be updated to their latest version to ensure maximum compatibility with this plugin: %1$s.',
171 'wpdirectorykit'
172 ),
173 'notice_ask_to_update_maybe' => _n_noop(
174 /* translators: 1: plugin name(s). * /
175 'There is an update available for: %1$s.',
176 'There are updates available for the following plugins: %1$s.',
177 'wpdirectorykit'
178 ),
179 'notice_can_activate_required' => _n_noop(
180 /* translators: 1: plugin name(s). * /
181 'The following required plugin is currently inactive: %1$s.',
182 'The following required plugins are currently inactive: %1$s.',
183 'wpdirectorykit'
184 ),
185 'notice_can_activate_recommended' => _n_noop(
186 /* translators: 1: plugin name(s). * /
187 'The following recommended plugin is currently inactive: %1$s.',
188 'The following recommended plugins are currently inactive: %1$s.',
189 'wpdirectorykit'
190 ),
191 'install_link' => _n_noop(
192 'Begin installing plugin',
193 'Begin installing plugins',
194 'wpdirectorykit'
195 ),
196 'update_link' => _n_noop(
197 'Begin updating plugin',
198 'Begin updating plugins',
199 'wpdirectorykit'
200 ),
201 'activate_link' => _n_noop(
202 'Begin activating plugin',
203 'Begin activating plugins',
204 'wpdirectorykit'
205 ),
206 'return' => __( 'Return to Required Plugins Installer', 'wpdirectorykit' ),
207 'plugin_activated' => __( 'Plugin activated successfully.', 'wpdirectorykit' ),
208 'activated_successfully' => __( 'The following plugin was activated successfully:', 'wpdirectorykit' ),
209 /* translators: 1: plugin name. * /
210 'plugin_already_active' => __( 'No action taken. Plugin %1$s was already active.', 'wpdirectorykit' ),
211 /* translators: 1: plugin name. * /
212 'plugin_needs_higher_version' => __( 'Plugin not activated. A higher version of %s is needed for this plugin. Please update the plugin.', 'wpdirectorykit' ),
213 /* translators: 1: dashboard link. * /
214 'complete' => __( 'All plugins installed and activated successfully. %1$s', 'wpdirectorykit' ),
215 'dismiss' => __( 'Dismiss this notice', 'wpdirectorykit' ),
216 'notice_cannot_install_activate' => __( 'There are one or more required or recommended plugins to install, update or activate.', 'wpdirectorykit' ),
217 'contact_admin' => __( 'Please contact the administrator of this site for help.', 'wpdirectorykit' ),
218
219 'nag_type' => '', // Determines admin notice type - can only be one of the typical WP notice classes, such as 'updated', 'update-nag', 'notice-warning', 'notice-info' or 'error'. Some of which may not work as expected in older WP versions.
220 ),
221 */
222 );
223
224 tgmpa($plugins, $config);
225 }
226