Version Description
- Bug fixing in menu
Download this release
Release Info
Developer | osamaesh |
Plugin | Visitors Traffic Real Time Statistics |
Version | 4.6 |
Comparing to | |
See all releases |
Code changes from version 4.5 to 4.6
- Visitors-Traffic-Real-Time-Statistics.php +13 -1
- functions.php +4 -25
- init.php +1 -1
- readme.txt +6 -1
Visitors-Traffic-Real-Time-Statistics.php
CHANGED
@@ -4,7 +4,7 @@ Plugin Name: Visitor Traffic Real Time Statistics
|
|
4 |
Description: Hits counter that shows analytical numbers of your WordPress site visitors and hits.
|
5 |
Author: wp-buy
|
6 |
Author URI: https://www.wp-buy.com/
|
7 |
-
Version: 4.
|
8 |
Text Domain: visitors-traffic-real-time-statistics
|
9 |
Domain Path: /languages
|
10 |
*/
|
@@ -144,4 +144,16 @@ add_action('admin_enqueue_scripts', 'vtrts_free_top_bar_enqueue_style');
|
|
144 |
}
|
145 |
|
146 |
//--------------------------------------------
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
147 |
?>
|
4 |
Description: Hits counter that shows analytical numbers of your WordPress site visitors and hits.
|
5 |
Author: wp-buy
|
6 |
Author URI: https://www.wp-buy.com/
|
7 |
+
Version: 4.6
|
8 |
Text Domain: visitors-traffic-real-time-statistics
|
9 |
Domain Path: /languages
|
10 |
*/
|
144 |
}
|
145 |
|
146 |
//--------------------------------------------
|
147 |
+
|
148 |
+
add_action('admin_menu', 'ahcfree_add_external_links_as_submenu');
|
149 |
+
|
150 |
+
function ahcfree_add_external_links_as_submenu() {
|
151 |
+
global $submenu;
|
152 |
+
$menu_slug = "ahc_hits_counter_menu_free"; // used as "key" in menus
|
153 |
+
|
154 |
+
$search_url = "plugin-install.php?s=wp-buy&tab=search&type=author";
|
155 |
+
If (is_multisite()) $search_url = "network/plugin-install.php?s=wp-buy&tab=search&type=author";
|
156 |
+
|
157 |
+
$submenu[$menu_slug][] = array('<span style="color:#f18500">' . __( 'More Plugins', 'MorePlugins' ) . '</span>', 'manage_options', admin_url($search_url));
|
158 |
+
}
|
159 |
?>
|
functions.php
CHANGED
@@ -420,15 +420,7 @@ function ahcfree_set_default_options() {
|
|
420 |
|
421 |
}
|
422 |
|
423 |
-
|
424 |
-
/**
|
425 |
-
* Called when plugin is deactivated
|
426 |
-
*
|
427 |
-
* @return void
|
428 |
-
*/
|
429 |
-
function ahcfree_unset_default_options() {
|
430 |
-
|
431 |
-
}
|
432 |
|
433 |
//--------------------------------------------
|
434 |
/**
|
@@ -463,24 +455,11 @@ function ahcfree_create_admin_menu_link() {
|
|
463 |
|
464 |
|
465 |
|
466 |
-
add_menu_page('Visitor Traffic Real Time Statistics Free', 'Visitor Traffic', '
|
467 |
-
add_submenu_page('ahc_hits_counter_menu_free', '
|
468 |
-
add_submenu_page('ahc_hits_counter_menu_free', '
|
469 |
|
470 |
|
471 |
-
add_submenu_page(
|
472 |
-
'ahc_hits_counter_menu_free',
|
473 |
-
esc_html__( 'More Plugins', 'MorePlugins' ),
|
474 |
-
'<span style="color:#f18500">' . esc_html__( 'More Plugins', 'MorePlugins' ) . '</span>',
|
475 |
-
'manage_options',
|
476 |
-
'MorePlugins',
|
477 |
-
function() {
|
478 |
-
header('Location: '.admin_url('plugin-install.php?s=wp-buy&tab=search&type=author'));
|
479 |
-
|
480 |
-
},
|
481 |
-
50
|
482 |
-
);
|
483 |
-
|
484 |
|
485 |
$ahcfree_custom_timezone = get_option( 'ahcfree_custom_timezone', false );
|
486 |
if( !$ahcfree_custom_timezone ){
|
420 |
|
421 |
}
|
422 |
|
423 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
424 |
|
425 |
//--------------------------------------------
|
426 |
/**
|
455 |
|
456 |
|
457 |
|
458 |
+
add_menu_page('Visitor Traffic Real Time Statistics Free', 'Visitor Traffic', 'manage_options', 'ahc_hits_counter_menu_free', 'ahcfree_create_plugin_overview_page', plugins_url('/images/vtrts.png', AHCFREE_PLUGIN_MAIN_FILE));
|
459 |
+
add_submenu_page('ahc_hits_counter_menu_free', 'Settings', 'Settings', 'manage_options', 'ahc_hits_counter_settings', 'ahcfree_create_plugin_settings_page');
|
460 |
+
add_submenu_page('ahc_hits_counter_menu_free', 'Contact Support', 'Help', 'manage_options', 'ahc_hits_counter_help', 'ahcfree_create_plugin_help_page');
|
461 |
|
462 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
463 |
|
464 |
$ahcfree_custom_timezone = get_option( 'ahcfree_custom_timezone', false );
|
465 |
if( !$ahcfree_custom_timezone ){
|
init.php
CHANGED
@@ -16,7 +16,7 @@ require_once("WPHitsCounter.php");
|
|
16 |
|
17 |
|
18 |
register_activation_hook(AHCFREE_PLUGIN_MAIN_FILE, 'ahcfree_set_default_options');
|
19 |
-
register_deactivation_hook(AHCFREE_PLUGIN_MAIN_FILE, 'ahcfree_unset_default_options');
|
20 |
|
21 |
|
22 |
class GlobalsAHC{
|
16 |
|
17 |
|
18 |
register_activation_hook(AHCFREE_PLUGIN_MAIN_FILE, 'ahcfree_set_default_options');
|
19 |
+
//register_deactivation_hook(AHCFREE_PLUGIN_MAIN_FILE, 'ahcfree_unset_default_options');
|
20 |
|
21 |
|
22 |
class GlobalsAHC{
|
readme.txt
CHANGED
@@ -3,7 +3,7 @@ Contributors: wp-buy, osamaesh
|
|
3 |
Tags: visitor, traffic, statistics, analytics, stats, online, Visit, WordPress analytics ,visitors online, count visitor, google analytics, analytics, GeoIP, Geo locations, analytics dashboard, visits, chart, browser, blog, today, yesterday, week, month, wp Statistics, year, post, page, sidebar, summary, feedburner, hits, pagerank, google, histats, alexa, live visit, counter, diagram, graph
|
4 |
Requires at least: 3.0.1
|
5 |
Tested up to: 5.8.2
|
6 |
-
Stable tag: 4.
|
7 |
License: GPLv2 or later
|
8 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
9 |
|
@@ -150,6 +150,11 @@ This plugin supports IPv6; however, PHP must be compiled with IPv6 support enabl
|
|
150 |
|
151 |
== Changelog ==
|
152 |
|
|
|
|
|
|
|
|
|
|
|
153 |
= 4.5 =
|
154 |
1. Bug fixing in IP execlusion
|
155 |
|
3 |
Tags: visitor, traffic, statistics, analytics, stats, online, Visit, WordPress analytics ,visitors online, count visitor, google analytics, analytics, GeoIP, Geo locations, analytics dashboard, visits, chart, browser, blog, today, yesterday, week, month, wp Statistics, year, post, page, sidebar, summary, feedburner, hits, pagerank, google, histats, alexa, live visit, counter, diagram, graph
|
4 |
Requires at least: 3.0.1
|
5 |
Tested up to: 5.8.2
|
6 |
+
Stable tag: 4.6
|
7 |
License: GPLv2 or later
|
8 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
9 |
|
150 |
|
151 |
== Changelog ==
|
152 |
|
153 |
+
= 4.6 =
|
154 |
+
1. Bug fixing in menu
|
155 |
+
|
156 |
+
|
157 |
+
|
158 |
= 4.5 =
|
159 |
1. Bug fixing in IP execlusion
|
160 |
|