PluginProbe ʕ •ᴥ•ʔ
WP Chat App / trunk
WP Chat App vtrunk
3.8.1 3.8.2 trunk 2.6 3.4 3.4.1 3.4.2 3.4.4 3.4.5 3.4.6 3.5 3.6 3.6.1 3.6.2 3.6.3 3.6.4 3.6.5 3.6.6 3.6.7 3.6.8 3.6.9 3.7.0 3.7.1 3.7.2 3.7.3 3.7.4 3.8.0
wp-whatsapp / cross-sell / loader.php
wp-whatsapp / cross-sell Last commit date
filebird-dashboard-cross-sell 3 months ago filebird-notification-cross-sell 3 months ago filebird-sidebar-popup-cross-sell 3 months ago .source 3 months ago loader.php 3 months ago registry.php 3 months ago
loader.php
24 lines
1 <?php
2 /**
3 * YayCrossSell consumer loader.
4 *
5 * Required by each consumer plugin's main file:
6 * require_once __DIR__ . '/cross-sell/loader.php';
7 *
8 * Probes both layouts so the same file works in:
9 * - source repo: modules/<name>/register.php
10 * - synced consumer dir: <name>/register.php (modules/ wrapper flattened)
11 */
12
13 defined('ABSPATH') || exit;
14
15 require_once __DIR__ . '/registry.php';
16
17 $globs = glob(__DIR__ . '/*/register.php')
18 ?: glob(__DIR__ . '/modules/*/register.php')
19 ?: [];
20
21 foreach ($globs as $register) {
22 require_once $register;
23 }
24