Changeset 1940967
- Timestamp:
- 09/13/2018 05:49:32 PM (7 years ago)
- Location:
- wp-best-analytics/trunk
- Files:
-
- 2 edited
-
readme.txt (modified) (1 diff)
-
wp-best-analytics.php (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
wp-best-analytics/trunk/readme.txt
r1924110 r1940967 25 25 == Changelog == 26 26 27 = 1.1 = 28 *Release Date - 13 September 2018* 29 * Adds field for bing webmaster tools 30 27 31 = 1.0 = 28 32 *Release Date - 08 August 2018* -
wp-best-analytics/trunk/wp-best-analytics.php
r1924107 r1940967 5 5 Description: Best analytics plugin for having analytics installed on live sites and dev sites without showing up on both. 6 6 Author: Louis Fico 7 Version: 1. 07 Version: 1.1 8 8 Author URI: eastsidecode.com 9 9 */ … … 22 22 add_action( 'admin_init', function() { 23 23 register_setting( 'wp-best-analytics-analytics-plugin-settings', 'wp_best_analytics_analytics_meta_field' ); 24 register_setting( 'wp-best-analytics-analytics-plugin-settings', 'wp_best_analytics_analytics_bing_webmaster_meta_field' ); 25 24 26 register_setting( 'wp-best-analytics-analytics-plugin-settings', 'wp_best_analytics_analytics_tracking_code_field' ); 25 27 register_setting( 'wp-best-analytics-analytics-plugin-settings', 'wp_best_analytics_analytics_dev_url' ); … … 56 58 57 59 <tr> 58 <th style="text-align: right;"> Meta Field for Verification (optional):</th>60 <th style="text-align: right;">Google Meta Field for Verification (optional):</th> 59 61 <td><input type="text" placeholder="Verification field for Google search console" name="wp_best_analytics_analytics_meta_field" value="<?php echo esc_attr( get_option('wp_best_analytics_analytics_meta_field') ); ?>" size="80" /></td> 60 62 </tr> 63 <tr> 64 <td height="2" style="font-size:2px; line-height:2px;"></td> 65 </tr> 66 67 <tr> 68 <th></th> 69 <td>Use this field if you'd like to verify your Google Search console property with a meta tag.</td> 70 </tr> 71 72 <tr> 73 <td height="10" style="font-size:10px; line-height:10px;"></td> 74 </tr> 75 76 <tr> 77 <th style="text-align: right;">Bing Meta Field for Verification (optional):</th> 78 <td><input type="text" placeholder="Verification field for Bing Webmaster Tools" name="wp_best_analytics_analytics_bing_webmaster_meta_field" value="<?php echo esc_attr( get_option('wp_best_analytics_analytics_bing_webmaster_meta_field') ); ?>" size="80" /></td> 79 </tr> 80 61 81 <tr> 62 82 <td height="2" style="font-size:2px; line-height:2px;"></td> … … 65 85 <tr> 66 86 <th></th> 67 <td>Use this field if you'd like to verify your Google Search console propertywith a meta tag.</td>87 <td>Use this field if you'd like to verify your Bing Webmaster tools acount with a meta tag.</td> 68 88 </tr> 69 89 … … 177 197 } 178 198 179 } 199 $bingVerificationCode = get_option('wp_best_analytics_analytics_bing_webmaster_meta_field'); 200 201 if (isset($bingVerificationCode)) { 202 echo $bingVerificationCode; 203 } 204 205 206 } // end. function 180 207 181 208 add_action('wp_head', 'wp_best_analytics_add_site_verification');
Note: See TracChangeset
for help on using the changeset viewer.