Code Coverage
 
Lines
Functions and Methods
Classes and Traits
Total
0.00% covered (danger)
0.00%
0 / 16
n/a
0 / 0
CRAP
n/a
0 / 0
1<?php
2
3use NewfoldLabs\WP\ModuleLoader\Container;
4use NewfoldLabs\WP\Module\GlobalCTB\CTB;
5use function NewfoldLabs\WP\ModuleLoader\register;
6
7if ( function_exists( 'add_action' ) ) {
8
9    add_action(
10        'plugins_loaded',
11        function () {
12            register(
13                array(
14                    'name'     => 'global-ctb',
15                    'label'    => __( 'global-ctb', 'newfold-global-ctb-module' ),
16                    'callback' => function ( Container $container ) {
17                        return new CTB( $container );
18                    },
19                    'isActive' => true,
20                    'isHidden' => true,
21                )
22            );
23        }
24    );
25
26}