Code Coverage
 
Lines
Functions and Methods
Classes and Traits
Total
0.00% covered (danger)
0.00%
0 / 20
n/a
0 / 0
CRAP
n/a
0 / 0
1<?php
2
3use NewfoldLabs\WP\ModuleLoader\Container;
4use NewfoldLabs\WP\Module\Solutions\Solutions;
5
6use function NewfoldLabs\WP\ModuleLoader\register;
7
8if ( function_exists( 'add_action' ) ) {
9    add_action(
10        'plugins_loaded',
11        function () {
12            register(
13                array(
14                    'name'     => 'wp-module-solutions',
15                    'label'    => __( 'Solutions', 'wp-module-solutions' ),
16                    'callback' => function ( Container $container ) {
17                        new Solutions( $container );
18                        define( 'NFD_SOLUTIONS_DIR', __DIR__ );
19                        define( 'NFD_SOLUTIONS_BUILD_DIR', __DIR__ . '/build/' );
20                        define( 'NFD_SOLUTIONS_PLUGIN_URL', $container->plugin()->url );
21                        define( 'NFD_SOLUTIONS_PLUGIN_DIRNAME', dirname( $container->plugin()->basename ) );
22                    },
23                    'isActive' => true,
24                    'isHidden' => true,
25                )
26            );
27        }
28    );
29
30}