PluginProbe ʕ •ᴥ•ʔ
VK Blocks / 1.125.0
VK Blocks v1.125.0
1.126.4 1.126.3 1.126.1 1.126.2 1.126.0 1.125.0 1.124.0 1.123.0 1.122.0 1.121.0 1.120.0 1.119.2 1.119.1 1.119.0 1.118.7 1.82.0.0 1.82.0.1 1.83.0.0 1.83.0.1 1.84.0.0 1.84.0.1 1.85.0.2 1.85.0.3 1.85.1.0 1.85.1.1 1.86.0.0 1.86.0.1 1.86.1.0 1.87.0.0 1.87.0.1 1.88.0.1 1.88.0.2 1.89.0.0 1.9.2 1.90.0.0 1.90.0.1 1.90.1.1 1.91.0.0 1.91.1.1 1.92.0.0 1.92.0.1 1.92.1.0 1.92.1.1 1.93.0.0 trunk 1.93.0.1 0.1.1 1.93.1.0 0.10.3 1.93.1.1 0.11.0 1.94.0.0 0.12.6 1.94.0.1 0.15.1 1.94.1.0 0.16.2 1.94.2.1 0.17.6 1.94.2.2 0.2.2 1.95.0.3 0.22.4 1.95.0.4 0.26.7 1.96.2.0 0.3.2 1.96.2.1 0.31.0 1.97.0.1 0.35.5 1.97.0.2 0.37.5 1.99.0.0 0.38.8 1.99.0.1 0.39.4 0.4.7 0.41.0 0.42.0 0.44.13 0.45.2 0.46.1 0.47.0 0.48.0 0.49.8 0.5.2 0.50.3 0.51.0 0.52.2 0.53.2 0.54.0 0.55.0 0.56.2 0.56.3 0.57.6 0.58.10 0.59.0 0.6.0 0.60.1 0.61.2 0.7.1 0.8.2 1.0.16 1.10.0 1.100.0.0 1.100.0.1 1.102.0.0 1.102.0.1 1.103.0.0 1.104.0.0 1.104.0.1 1.105.1.0 1.105.1.1 1.106.0.0 1.106.0.1 1.107.0.0 1.107.0.1 1.107.0.2 1.108.0.0 1.108.0.1 1.109.0.0 1.109.0.1 1.11.4 1.110.0.0 1.110.0.1 1.111.0.0 1.111.0.1 1.111.0.2 1.112.0.0 1.112.0.1 1.113.0.0 1.113.0.1 1.114.0.0 1.114.0.1 1.114.2.0 1.114.2.1 1.115.0.0 1.115.0.1 1.115.1.0 1.115.1.1 1.115.2.0 1.115.2.1 1.116.0.0 1.116.0.1 1.116.1.0 1.116.1.1 1.116.2.0 1.117.0.0 1.117.0.1 1.117.1.0 1.118.2 1.118.5 1.12.0 1.13.2 1.14.1 1.15.1 1.16.11 1.17.0 1.18.6 1.19.0 1.19.1 1.2.3 1.20.7 1.21.0 1.22.4 1.23.0 1.24.5 1.25.1 1.26.2 1.27.7.2 1.28.0.1 1.29.2.0 1.3.9 1.30.0.1 1.31.0.1 1.32.0.2 1.33.2.1 1.36.1.5 1.37.0.0 1.39.2.1 1.4.6 1.40.0.1 1.40.1.0 1.40.1.1 1.41.0.0 1.41.0.1 1.41.2.2 1.41.2.3 1.43.0.0 1.43.0.1 1.43.0.2 1.44.0.0 1.44.0.1 1.45.0.0 1.45.0.1 1.46.0.0 1.46.0.1 1.47.0.0 1.47.0.1 1.47.1.0 1.48.0.0 1.48.0.1 1.48.0.2 1.48.1.0 1.48.1.1 1.5.0 1.50.0.0 1.50.0.1 1.51.0.0 1.51.0.1 1.52.0.0 1.52.0.1 1.53.0.0 1.53.0.1 1.54.0.0 1.54.0.1 1.55.0.0 1.55.0.1 1.56.0.0 1.56.0.1 1.57.0.0 1.57.0.2 1.57.0.3 1.57.0.4 1.57.0.5 1.57.1.0 1.57.1.1 1.57.1.2 1.58.0.0 1.58.0.1 1.59.0.0 1.59.0.1 1.6.0 1.60.0.0 1.60.0.1 1.63.0.0 1.63.0.1 1.64.0.0 1.64.0.1 1.64.1.0 1.64.1.2 1.67.0.0 1.67.0.1 1.68.0.0 1.68.0.1 1.69.0.0 1.69.0.1 1.69.1.1 1.69.1.2 1.7.1 1.70.0.0 1.70.0.1 1.71.0.0 1.71.0.1 1.72.0.0 1.72.1.0 1.72.1.1 1.73.0.0 1.73.0.1 1.74.0.0 1.74.0.1 1.75.0.0 1.75.1.0 1.75.1.1 1.76.0.0 1.76.0.1 1.76.1.0 1.76.1.1 1.76.2.0 1.76.2.1 1.77.0.0 1.77.0.1 1.78.0.0 1.78.0.1 1.79.0.0 1.79.0.1 1.79.0.2 1.79.0.3 1.79.1.0 1.79.1.1 1.8.2 1.80.1.0 1.80.1.1 1.80.1.2 1.81.0.1 1.81.0.2
vk-blocks / inc / tgm-plugin-activation / tgm-config.php
vk-blocks / inc / tgm-plugin-activation Last commit date
tgm-config.php 3 years ago
tgm-config.php
116 lines
1 <?php
2 /**
3 * This file represents an example of the code that themes would use to register
4 * the required plugins.
5 *
6 * It is expected that theme authors would copy and paste this code into their
7 * functions.php file, and amend to suit.
8 *
9 * @see http://tgmpluginactivation.com/configuration/ for detailed documentation.
10 *
11 * @package TGM-Plugin-Activation
12 * @subpackage Example
13 * @version 2.5.2
14 * @author Thomas Griffin, Gary Jones, Juliette Reinders Folmer
15 * @copyright Copyright (c) 2011, Thomas Griffin
16 * @license http://opensource.org/licenses/gpl-2.0.php GPL v2 or later
17 * @link https://github.com/TGMPA/TGM-Plugin-Activation
18 */
19
20 add_action( 'tgmpa_register', 'vkb_register_required_plugins' );
21 /**
22 * Register the required plugins for this theme.
23 *
24 * In this example, we register five plugins:
25 * - one included with the TGMPA library
26 * - two from an external source, one from an arbitrary source, one from a GitHub repository
27 * - two from the .org repo, where one demonstrates the use of the `is_callable` argument
28 *
29 * The variable passed to tgmpa_register_plugins() should be an array of plugin
30 * arrays.
31 *
32 * This function is hooked into tgmpa_init, which is fired within the
33 * TGM_Plugin_Activation class constructor.
34 */
35 function vkb_register_required_plugins() {
36 /*
37 * Array of plugin arrays. Required keys are name and slug.
38 * If the source is NOT from the .org repo, then source is also required.
39 */
40 $plugins = array(
41
42 // This is an example of how to include a plugin bundled with a theme.
43 array(
44 'name' => 'VK Block Patterns', // The plugin name.
45 'slug' => 'vk-block-patterns', // The plugin slug (typically the folder name).
46 'required' => false, // If false, the plugin is only 'recommended' instead of required.
47 ),
48 );
49
50 /*
51 * Array of configuration settings. Amend each line as needed.
52 *
53 * TGMPA will start providing localized text strings soon. If you already have translations of our standard
54 * strings available, please help us make TGMPA even better by giving us access to these translations or by
55 * sending in a pull-request with .po file(s) with the translations.
56 *
57 * Only uncomment the strings in the config array if you want to customize the strings.
58 */
59 $config = array(
60 'id' => 'tgmpa', // Unique ID for hashing notices for multiple instances of TGMPA.
61 'default_path' => '', // Default absolute path to bundled plugins.
62 'menu' => 'tgmpa-install-plugins', // Menu slug.
63 'parent_slug' => 'plugins.php', // Parent menu slug.
64 'capability' => 'edit_theme_options', // Capability needed to view plugin install page, should be a capability associated with the parent menu used.
65 'has_notices' => true, // Show admin notices or not.
66 'dismissable' => true, // If false, a user cannot dismiss the nag message.
67 'dismiss_msg' => '', // If 'dismissable' is false, this message will be output at top of nag.
68 'is_automatic' => false, // Automatically activate plugins after installation or not.
69 'message' => '', // Message to output right before the plugins table.
70
71 'strings' => array(
72 'page_title' => __( 'Install Required Plugins', 'vk-blocks' ),
73 'menu_title' => __( 'Install Plugins', 'vk-blocks' ),
74 // translators: %s = plugin name.
75 'installing' => __( 'Installing Plugin: %s', 'vk-blocks' ),
76 'oops' => __( 'Something went wrong with the plugin API.', 'vk-blocks' ),
77 // translators:
78 'notice_can_install_required' => _n_noop( 'This plugin requires the following plugin: %1$s.', 'This plugin requires the following plugins: %1$s.', 'vk-blocks' ),
79 // translators: %s = plugin name.
80 'notice_can_install_recommended' => _n_noop( 'This plugin recommends the following plugin: %1$s.<br>Many additional functions are available for free.', 'This plugin recommends the following plugins: %1$s.<br>Many additional functions are available for free.', 'vk-blocks' ),
81 // translators: %s = plugin name.
82 'notice_cannot_install' => _n_noop( 'Sorry, but you do not have the correct permissions to install the %1$s plugin.', 'Sorry, but you do not have the correct permissions to install the %1$s plugins.', 'vk-blocks' ),
83 // translators: %s = plugin name.
84 'notice_ask_to_update' => _n_noop( 'The following plugin needs to be updated to its latest version to ensure maximum compatibility with this plugin: %1$s.', 'The following plugins need to be updated to their latest version to ensure maximum compatibility with this plugin: %1$s.', 'vk-blocks' ),
85 // translators: %s = plugin name.
86 'notice_ask_to_update_maybe' => _n_noop( 'There is an update available for: %1$s.', 'There are updates available for the following plugins: %1$s.', 'vk-blocks' ),
87 // translators: %s = plugin name.
88 'notice_cannot_update' => _n_noop( 'Sorry, but you do not have the correct permissions to update the %1$s plugin.', 'Sorry, but you do not have the correct permissions to update the %1$s plugins.', 'vk-blocks' ),
89 // translators: %s = plugin name.
90 'notice_can_activate_required' => _n_noop( 'The following required plugin is currently inactive: %1$s.', 'The following required plugins are currently inactive: %1$s.', 'vk-blocks' ),
91 // translators: %s = plugin name.
92 'notice_can_activate_recommended' => _n_noop( 'The following recommended plugin is currently inactive: %1$s.', 'The following recommended plugins are currently inactive: %1$s.', 'vk-blocks' ),
93 // translators: %s = plugin name.
94 'notice_cannot_activate' => _n_noop( 'Sorry, but you do not have the correct permissions to activate the %1$s plugin.', 'Sorry, but you do not have the correct permissions to activate the %1$s plugins.', 'vk-blocks' ),
95 // translators: %s = plugin name.
96 'install_link' => _n_noop( 'Begin installing plugin', 'Begin installing plugins', 'vk-blocks' ),
97 'update_link' => _n_noop( 'Begin updating plugin', 'Begin updating plugins', 'vk-blocks' ),
98 'activate_link' => _n_noop( 'Begin activating plugin', 'Begin activating plugins', 'vk-blocks' ),
99 'return' => __( 'Return to Required Plugins Installer', 'vk-blocks' ),
100 'plugin_activated' => __( 'Plugin activated successfully.', 'vk-blocks' ),
101 'activated_successfully' => __( 'The following plugin was activated successfully:', 'vk-blocks' ),
102 // translators: %s = plugin name.
103 'plugin_already_active' => __( 'No action taken. Plugin %1$s was already active.', 'vk-blocks' ),
104 // translators: %s = plugin name.
105 'plugin_needs_higher_version' => __( 'Plugin not activated. A higher version of %s is needed for this theme. Please update the plugin.', 'vk-blocks' ),
106 // translators: %s = plugin name.
107 'complete' => __( 'All plugins installed and activated successfully. %1$s', 'vk-blocks' ),
108 // translators: %s = dashboard link.
109 'contact_admin' => __( 'Please contact the administrator of this site for help.', 'vk-blocks' ),
110 'nag_type' => 'updated', // Determines admin notice type - can only be 'updated', 'update-nag' or 'error'.
111 ),
112 );
113
114 tgmpa( $plugins, $config );
115 }
116