Skip to content

Commit e68b4d0

Browse files
authored
Update conversion-tracking.php
1 parent 10d4eca commit e68b4d0

1 file changed

Lines changed: 7 additions & 19 deletions

File tree

conversion-tracking.php

Lines changed: 7 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -150,24 +150,12 @@ public function includes() {
150150
* @return void
151151
*/
152152
public function define_constants() {
153-
if ( ! defined( 'WCCT_VERSION' ) ) {
154-
define( 'WCCT_VERSION', $this->version );
155-
}
156-
if ( ! defined( 'WCCT_FILE' ) ) {
157-
define( 'WCCT_FILE', __FILE__ );
158-
}
159-
if ( ! defined( 'WCCT_PATH' ) ) {
160-
define( 'WCCT_PATH', dirname( WCCT_FILE ) );
161-
}
162-
if ( ! defined( 'WCCT_INCLUDES' ) ) {
163-
define( 'WCCT_INCLUDES', WCCT_PATH . '/includes' );
164-
}
165-
if ( ! defined( 'WCCT_URL' ) ) {
166-
define( 'WCCT_URL', plugins_url( '', WCCT_FILE ) );
167-
}
168-
if ( ! defined( 'WCCT_ASSETS' ) ) {
169-
define( 'WCCT_ASSETS', WCCT_URL . '/assets' );
170-
}
153+
defined( 'WCCT_VERSION' ) || define( 'WCCT_VERSION', $this->version );
154+
defined( 'WCCT_FILE' ) || define( 'WCCT_FILE', __FILE__ );
155+
defined( 'WCCT_PATH' ) || define( 'WCCT_PATH', dirname( WCCT_FILE ) );
156+
defined( 'WCCT_INCLUDES' ) || define( 'WCCT_INCLUDES', WCCT_PATH . '/includes' );
157+
defined( 'WCCT_URL' ) || define( 'WCCT_URL', plugins_url( '', WCCT_FILE ) );
158+
defined( 'WCCT_ASSETS' ) || define( 'WCCT_ASSETS', WCCT_URL . '/assets' );
171159
}
172160

173161
/**
@@ -383,4 +371,4 @@ function wcct_init() {
383371
*/
384372
function wcct_manage_cap() {
385373
return apply_filters( 'wcct_capability', 'manage_options' );
386-
}
374+
}

0 commit comments

Comments
 (0)