Header Footer Code Manager - Version 1.1.8

Version Description

2020-09-01 * FIXED: Specific Taxonomy Snippets showing on archives with at least one instance. * UPDATED: Compatibility with WordPress 5.5.0

Download this release

Release Info

Developer 99robots
Plugin Icon 128x128 Header Footer Code Manager
Version 1.1.8
Comparing to
See all releases

Code changes from version 1.1.7 to 1.1.8

99robots-header-footer-code-manager.php CHANGED
@@ -1,11 +1,11 @@
1
  <?php
2
  /**
3
  * Plugin Name: Header Footer Code Manager
4
- * Plugin URI: https://99robots.com/products
5
- * Description: Header Footer Code Manager by 99 Robots is a quick and simple way for you to add tracking code snippets, conversion pixels, or other scripts required by third party services for analytics, tracking, marketing, or chat functions. For detailed documentation, please visit the plugin's <a href="https://99robots.com/"> official page</a>.
6
- * Version: 1.1.7
7
  * Author: 99robots
8
- * Author URI: https://99robots.com/
9
  * Disclaimer: Use at your own risk. No warranty expressed or implied is provided.
10
  * Text Domain: 99robots-header-footer-code-manager
11
  * Domain Path: /languages
@@ -358,7 +358,13 @@ function hfcm_add_snippets( $location = '', $content = '' ) {
358
  break;
359
  case 's_categories':
360
  if ( hfcm_not_empty( $scriptdata, 's_categories' ) && in_category( json_decode( $scriptdata->s_categories ) ) ) {
361
- $out = hfcm_render_snippet( $scriptdata );
 
 
 
 
 
 
362
  }
363
  break;
364
  case 's_custom_posts':
@@ -386,8 +392,13 @@ function hfcm_add_snippets( $location = '', $content = '' ) {
386
  }
387
  break;
388
  case 's_tags':
389
- if ( hfcm_not_empty( $scriptdata, 's_tags' ) && has_tag( json_decode( $scriptdata->s_tags ) ) ) {
390
- $out = hfcm_render_snippet( $scriptdata );
 
 
 
 
 
391
  }
392
  }
393
 
1
  <?php
2
  /**
3
  * Plugin Name: Header Footer Code Manager
4
+ * Plugin URI: https://draftpress.com/products
5
+ * Description: Header Footer Code Manager by 99 Robots is a quick and simple way for you to add tracking code snippets, conversion pixels, or other scripts required by third party services for analytics, tracking, marketing, or chat functions. For detailed documentation, please visit the plugin's <a href="https://draftpress.com/"> official page</a>.
6
+ * Version: 1.1.8
7
  * Author: 99robots
8
+ * Author URI: https://draftpress.com/
9
  * Disclaimer: Use at your own risk. No warranty expressed or implied is provided.
10
  * Text Domain: 99robots-header-footer-code-manager
11
  * Domain Path: /languages
358
  break;
359
  case 's_categories':
360
  if ( hfcm_not_empty( $scriptdata, 's_categories' ) && in_category( json_decode( $scriptdata->s_categories ) ) ) {
361
+
362
+ if(is_category(json_decode( $scriptdata->s_categories ))){
363
+ $out = hfcm_render_snippet( $scriptdata );
364
+ }
365
+ if(!is_archive() && !is_home()){
366
+ $out = hfcm_render_snippet( $scriptdata );
367
+ }
368
  }
369
  break;
370
  case 's_custom_posts':
392
  }
393
  break;
394
  case 's_tags':
395
+ if ( hfcm_not_empty( $scriptdata, 's_tags' ) && has_tag( json_decode( $scriptdata->s_tags ) )) {
396
+ if(is_tag(json_decode( $scriptdata->s_tags ))){
397
+ $out = hfcm_render_snippet( $scriptdata );
398
+ }
399
+ if(!is_archive() && !is_home()){
400
+ $out = hfcm_render_snippet( $scriptdata );
401
+ }
402
  }
403
  }
404
 
readme.txt CHANGED
@@ -1,12 +1,12 @@
1
  === Header Footer Code Manager ===
2
- Contributors: 99robots, charliepatel
3
  Tags: header, footer, code manager, snippet, functions.php, tracking, google analytics, adsense, verification, pixel
4
  Requires at least: 4.0
5
- Tested up to: 5.4.0
6
- Stable tag: 1.1.7
7
  License: GPLv2 or later
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
- Donate link: https://99robots.com
10
 
11
  Easily add tracking code snippets, conversion pixels, or other scripts required by third party services for analytics, marketing, or chat features.
12
 
@@ -70,10 +70,10 @@ Header Footer Code Manager by 99 Robots is a easy interface to add snippets to t
70
  If using this plugin on a multisite network, please make sure that the plugin is activated on a subsite level only.
71
 
72
  > #### Plugin Information
73
- > * [Plugin Site](https://www.99robots.com/header-footer-code-manager)
74
- > * [Plugin Documentation](https://www.99robots.com/docs/header-footer-code-manager)
75
  > * [Free Plugins on WordPress.org](https://profiles.wordpress.org/99robots#content-plugins)
76
- > * [Premium Plugins](https://www.99robots.com/products)
77
 
78
  == Installation ==
79
 
@@ -88,7 +88,7 @@ NOTE: If using this plugin on a multisite network, please make sure that the plu
88
  1. HFCM Settings
89
  2. Dashboard - All Snippets
90
  3. Add New Snippet - Read the documentation at:
91
- http://www.99robots.com/docs/header-footer-code-manager
92
  4. Choose where you want your snippet to be displayed
93
 
94
  == Frequently Asked Questions ==
@@ -113,6 +113,10 @@ A. If your script is not supported, just let us know and we'll look into it imme
113
 
114
  == Changelog ==
115
 
 
 
 
 
116
  = 1.1.7 = 2020-04-20
117
  * UPDATED: Compatibility with WordPress 5.4.0
118
  * FIXED: Warnings and Exclude Pages/Posts showing up on Shortcode Only screen
1
  === Header Footer Code Manager ===
2
+ Contributors: 99robots, charliepatel, DraftPress
3
  Tags: header, footer, code manager, snippet, functions.php, tracking, google analytics, adsense, verification, pixel
4
  Requires at least: 4.0
5
+ Tested up to: 5.5.0
6
+ Stable tag: 1.1.8
7
  License: GPLv2 or later
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
+ Donate link: https://draftpress.com
10
 
11
  Easily add tracking code snippets, conversion pixels, or other scripts required by third party services for analytics, marketing, or chat features.
12
 
70
  If using this plugin on a multisite network, please make sure that the plugin is activated on a subsite level only.
71
 
72
  > #### Plugin Information
73
+ > * [Plugin Site](https://www.draftpress.com/header-footer-code-manager)
74
+ > * [Plugin Documentation](https://www.draftpress.com/docs/header-footer-code-manager)
75
  > * [Free Plugins on WordPress.org](https://profiles.wordpress.org/99robots#content-plugins)
76
+ > * [Premium Plugins](https://www.draftpress.com/products)
77
 
78
  == Installation ==
79
 
88
  1. HFCM Settings
89
  2. Dashboard - All Snippets
90
  3. Add New Snippet - Read the documentation at:
91
+ http://www.draftpress.com/docs/header-footer-code-manager
92
  4. Choose where you want your snippet to be displayed
93
 
94
  == Frequently Asked Questions ==
113
 
114
  == Changelog ==
115
 
116
+ = 1.1.8 = 2020-09-01
117
+ * FIXED: Specific Taxonomy Snippets showing on archives with at least one instance.
118
+ * UPDATED: Compatibility with WordPress 5.5.0
119
+
120
  = 1.1.7 = 2020-04-20
121
  * UPDATED: Compatibility with WordPress 5.4.0
122
  * FIXED: Warnings and Exclude Pages/Posts showing up on Shortcode Only screen