Changeset 2033016
- Timestamp:
- 02/18/2019 08:09:25 AM (7 years ago)
- Location:
- tealium/trunk
- Files:
-
- 2 edited
-
readme.txt (modified) (3 diffs)
-
tealium.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
tealium/trunk/readme.txt
r2007643 r2033016 4 4 Donate link: http://tealium.com 5 5 Requires at least: 3.0.1 6 Tested up to: 5. 07 Stable tag: 2.1.1 36 Tested up to: 5.1 7 Stable tag: 2.1.14 8 8 License: GPLv2 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 106 106 == Changelog == 107 107 108 = 2.1.14 = 109 * Added the role of the current WP user to the data layer. This will allow role-based load rules in TiQ. 110 108 111 = 2.1.13 = 109 112 * WooCommerce product data updates. … … 194 197 == Upgrade Notice == 195 198 199 = 2.1.14 = 200 Added the role of the current WP user to the data layer. This will allow role-based load rules in TiQ. 201 196 202 = 2.1.13 = 197 203 WooCommerce product data updates. -
tealium/trunk/tealium.php
r2007643 r2033016 4 4 Plugin URI: http://tealium.com 5 5 Description: Adds the Tealium tag and creates a data layer for your WordPress site. 6 Version: 2.1.1 36 Version: 2.1.14 7 7 Author: Ian Hampton - Tealium EMEA 8 8 Author URI: http://tealium.com … … 373 373 $utagdata['searchQuery'] = $searchQuery; 374 374 $utagdata['searchResults'] = $searchCount; 375 } 375 } 376 377 // Get current user role or set as guest 378 if( is_user_logged_in() ) { 379 $user = wp_get_current_user(); 380 $role = ( array ) $user->roles; 381 $utagdata['userRole'] = $role[0]; 382 } 383 else { 384 $utagdata['userRole'] = "guest"; 385 } 376 386 377 387 // Add shop data if WooCommerce is installed
Note: See TracChangeset
for help on using the changeset viewer.