Changeset 1231087
- Timestamp:
- 08/26/2015 10:20:54 AM (10 years ago)
- Location:
- official-statcounter-plugin-for-wordpress/tags/2.0
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
official-statcounter-plugin-for-wordpress/tags/2.0/StatCounter-Wordpress-Plugin.php
r1110995 r1231087 2 2 /* 3 3 * Plugin Name: Official StatCounter Plugin 4 * Version: 1.7.14 * Version: 2.0 5 5 * Plugin URI: http://statcounter.com/ 6 6 * Description: Adds the StatCounter tracking code to your blog. <br>To get setup: 1) Activate this plugin 2) Enter your StatCounter Project ID and Security Code in the <a href="options-general.php?page=StatCounter-Wordpress-Plugin.php"><strong>options page</strong></a>. … … 27 27 add_action('admin_menu' , 'add_sc_option_page' ); 28 28 add_action( 'admin_menu', 'statcounter_admin_menu' ); 29 add_action('wp_head', 'addToTags'); 29 30 30 31 function statcounter_admin_menu() { … … 241 242 } 242 243 244 function addToTags($pid){ 245 if (is_single()) { 246 global $post; 247 $queried_post = get_post($pid); 248 $authorId = $queried_post->post_author; 249 ?> 250 <script type="text/javascript"> 251 var _statcounter = _statcounter || []; 252 _statcounter.push({"tags": {"author": "<?php the_author_meta( 'nickname', $authorId); ?>"}}); 253 </script> 254 <?php 255 } 256 } 257 243 258 ?> -
official-statcounter-plugin-for-wordpress/tags/2.0/readme.txt
r1219261 r1231087 5 5 Requires at least: 2.0.2 6 6 Tested up to: 4.3 7 Stable tag: 1.7.17 Stable tag: 2.0 8 8 License: GPLv2 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 70 70 71 71 == Changelog == 72 73 = 2.0 = 74 75 StatCounter Tags supported. 72 76 73 77 = 1.7.1 = … … 149 153 Upgrade to allow for fully functioning PayPal upgrade options. 150 154 155
Note: See TracChangeset
for help on using the changeset viewer.