-
Notifications
You must be signed in to change notification settings - Fork 77
Expand file tree
/
Copy pathplugin-loader.php
More file actions
22 lines (20 loc) · 896 Bytes
/
plugin-loader.php
File metadata and controls
22 lines (20 loc) · 896 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
<?php
/**
* VIP recommends loading all plugins for your site in code. Loading plugins
* through code results in more control and greater consistency across
* development environments. Using this file to do so helps load and activate
* plugins as early as possible in the WordPress load order.
*
* @see https://docs.wpvip.com/how-tos/activate-plugins-through-code/
* @see https://docs.wpvip.com/technical-references/vip-codebase/client-mu-plugins-directory/
*/
// wpcom_vip_load_plugin( 'plugin-name' );
/**
* The above example requires the plugin to use a specific naming structure: /plugin-name/plugin-name.php
* You can also specify a plugin's root file:
* wpcom_vip_load_plugin( 'plugin-name/plugin.php' );
*
* wpcom_vip_load_plugin() only loads plugins from the `WP_PLUGIN_DIR` directory.
* For client-mu-plugins use:
* require __DIR__ . '/plugin-name/plugin-name.php';
*/