Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
| Total | |
0.00% |
0 / 11 |
n/a |
0 / 0 |
CRAP | n/a |
0 / 0 |
||
| 1 | <?php |
| 2 | |
| 3 | use NewfoldLabs\WP\Module\LinkTracker\LinkTracker; |
| 4 | |
| 5 | // Do not allow multiple copies of the module to be activated. |
| 6 | if ( defined( 'NFD_LINK_TRACKER_MODULE_VERSION' ) ) { |
| 7 | return; |
| 8 | } |
| 9 | |
| 10 | define( 'NFD_LINK_TRACKER_MODULE_VERSION', '1.1.1' ); |
| 11 | |
| 12 | if ( function_exists( 'add_action' ) ) { |
| 13 | add_action( |
| 14 | 'newfold_container_set', |
| 15 | function ( $container ) { |
| 16 | if ( ! defined( 'NFD_LINK_TRACKER_BUILD_URL' ) ) { |
| 17 | define( 'NFD_LINK_TRACKER_BUILD_URL', $container->plugin()->url . 'vendor/newfold-labs/wp-module-link-tracker/build' ); |
| 18 | } |
| 19 | if ( ! defined( 'NFD_LINK_TRACKER_BUILD_DIR' ) ) { |
| 20 | define( 'NFD_LINK_TRACKER_BUILD_DIR', $container->plugin()->dir . 'vendor/newfold-labs/wp-module-link-tracker/build' ); |
| 21 | } |
| 22 | $link_tracker = new LinkTracker( $container ); |
| 23 | $link_tracker->add_hooks(); |
| 24 | } |
| 25 | ); |
| 26 | } |