forked from roots/soil
-
Notifications
You must be signed in to change notification settings - Fork 0
/
soil.php
29 lines (24 loc) · 854 Bytes
/
soil.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
<?php
/**
* Plugin Name: Soil
* Plugin URI: https://roots.io/plugins/soil/
* Description: A collection of modules to apply theme-agnostic front-end modifications to WordPress.
* Version: 4.1.1
* Author: Roots
* Author URI: https://roots.io/
* GitHub Plugin URI: https://github.com/roots/soil
* Primary Branch: main
*
* License: MIT License
* License URI: https://opensource.org/licenses/MIT
*/
namespace Roots\Soil;
add_action('plugins_loaded', function () {
if (!class_exists(Soil::class)) {
require_once file_exists($autoloader = __DIR__ . '/vendor/autoload.php')
? $autoloader
: __DIR__ . '/src/autoload.php';
}
$modules = Soil::discoverModules();
add_action('after_setup_theme', new Soil($modules), 100);
});