File Editor
Directories:
.. (Back)
admin
api
defines
libraries
vendor
Files:
class-wp-statistics-admin-bar.php
class-wp-statistics-cli.php
class-wp-statistics-country.php
class-wp-statistics-db.php
class-wp-statistics-exclusion.php
class-wp-statistics-frontend.php
class-wp-statistics-geoip.php
class-wp-statistics-helper.php
class-wp-statistics-historical.php
class-wp-statistics-hits.php
class-wp-statistics-install.php
class-wp-statistics-ip.php
class-wp-statistics-license.php
class-wp-statistics-mail.php
class-wp-statistics-menus.php
class-wp-statistics-meta-box.php
class-wp-statistics-option.php
class-wp-statistics-pages.php
class-wp-statistics-privacy-erasers.php
class-wp-statistics-privacy-exporter.php
class-wp-statistics-purge.php
class-wp-statistics-referred.php
class-wp-statistics-rest-api.php
class-wp-statistics-schedule.php
class-wp-statistics-search-engine.php
class-wp-statistics-shortcode.php
class-wp-statistics-timezone.php
class-wp-statistics-uninstall.php
class-wp-statistics-updates.php
class-wp-statistics-user-agent.php
class-wp-statistics-user-online.php
class-wp-statistics-user.php
class-wp-statistics-visit.php
class-wp-statistics-visitor.php
class-wp-statistics-welcome.php
class-wp-statistics-widget.php
class-wp-statistics.php
defines.php
template-functions.php
Create New File
Create
Edit File: defines.php
<?php # Check get_plugin_data function exist if (!function_exists('get_plugin_data')) { require_once(ABSPATH . 'wp-admin/includes/plugin.php'); } # Set Plugin path and url defines. define('WP_STATISTICS_URL', plugin_dir_url(dirname(__FILE__))); define('WP_STATISTICS_DIR', plugin_dir_path(dirname(__FILE__))); define('WP_STATISTICS_MAIN_FILE', WP_STATISTICS_DIR . 'wp-statistics.php'); define('WP_STATISTICS_UPLOADS_DIR', 'wp-statistics'); define('WP_STATISTICS_SITE_URL', 'https://wp-statistics.com'); # Get plugin Data. $plugin_data = get_plugin_data(WP_STATISTICS_MAIN_FILE); # Set another useful Plugin defines. define('WP_STATISTICS_VERSION', $plugin_data['Version']); define('WP_STATISTICS_SITE', $plugin_data['PluginURI']); define('WP_STATISTICS_REQUIRE_PHP_VERSION', '5.4.0');
Save Changes
Rename File
Rename