diff --git a/sandbox-adaptions/sandbox-adaptions.php b/sandbox-adaptions/sandbox-adaptions.php index d1cfb6b..ec7d999 100644 --- a/sandbox-adaptions/sandbox-adaptions.php +++ b/sandbox-adaptions/sandbox-adaptions.php @@ -23,8 +23,8 @@ * along with this program. If not, see . */ -define('SOCOS_IO_ADAPTIONS_PATH', plugin_dir_path(__FILE__)); -define('SOCOS_IO_ADAPTIONS_URL', plugin_dir_url(__FILE__)); +define('SANDBOX_ADAPTIONS_PATH', plugin_dir_path(__FILE__)); +define('SANDBOX_ADAPTIONS_URL', plugin_dir_url(__FILE__)); /** * Ajax hooks @@ -271,7 +271,7 @@ function sandbox_admin_body_class($classes){ // add custom styles for admin section function sandbox_admin_styles_load(){ - wp_register_style('sandbox_admin', SOCOS_IO_ADAPTIONS_URL . '/admin/style.css'); + wp_register_style('sandbox_admin', SANDBOX_ADAPTIONS_URL . '/admin/style.css'); wp_enqueue_style('sandbox_admin'); } diff --git a/sandbox-stats.php b/sandbox-stats.php index 3c75687..a6b061f 100644 --- a/sandbox-stats.php +++ b/sandbox-stats.php @@ -1,6 +1,6 @@ diff --git a/sandbox-stats/sandbox-stats.php b/sandbox-stats/sandbox-stats.php index 4d40291..4b2cc86 100644 --- a/sandbox-stats/sandbox-stats.php +++ b/sandbox-stats/sandbox-stats.php @@ -1,6 +1,6 @@ . */ -define('SOCOS_IO_STATS_PATH', plugin_dir_path(__FILE__)); -define('SOCOS_IO_STATS_URL', plugin_dir_url(__FILE__)); +define('SANDBOX_STATS_PATH', plugin_dir_path(__FILE__)); +define('SANDBOX_STATS_URL', plugin_dir_url(__FILE__)); /** * Plugin setup hook @@ -64,15 +64,15 @@ function sandbox_setup_stats() { * License: GNU General Public License v2.0 */ function sandbox_get_matomo_tracker(){ - include_once(SOCOS_IO_STATS_PATH . '/config.php'); - include_once(SOCOS_IO_STATS_PATH . '/MatomoTracker.php'); + include_once(SANDBOX_STATS_PATH . '/config.php'); + include_once(SANDBOX_STATS_PATH . '/MatomoTracker.php'); - MatomoTracker::$URL = SOCOS_IO_STATS_TRACKER_URL; - $matomoTracker = new MatomoTracker(SOCOS_IO_STATS_SITE_ID); + MatomoTracker::$URL = SANDBOX_STATS_TRACKER_URL; + $matomoTracker = new MatomoTracker(SANDBOX_STATS_SITE_ID); // Specify an API token with at least Write permission, so the Visitor IP address can be recorded // Learn more about token_auth: https://matomo.org/faq/general/faq_114/ - $matomoTracker->setTokenAuth(SOCOS_IO_STATS_AUTH_TOKEN); + $matomoTracker->setTokenAuth(SANDBOX_STATS_AUTH_TOKEN); // You can manually set the visitor details (resolution, time, plugins, etc.) // See all other ->set* functions available in the MatomoTracker.php file