This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//How to edit a user profile on the front end? | |
//http://wordpress.stackexchange.com/questions/9775/how-to-edit-a-user-profile-on-the-front-end | |
//Forcing nickname as display_name in custom edit profile template | |
//http://wordpress.stackexchange.com/questions/35403/forcing-nickname-as-display-name-in-custom-edit-profile-template | |
/////// | |
<?php |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
jQuery.fn.utm_tracking = function(domain, source, medium, campaign) { | |
$(this).find('a[href^="' + domain + '"]').each(function() { | |
var url = $(this).attr('href'); | |
$(this).attr( 'href', url + '?utm_source=' + source + '&utm_medium=' + medium + '&utm_campaign=' + campaign ); | |
}); | |
} | |
// Example Call | |
$(document).ready( function() { | |
$('body').utm_tracking('http://www.example.com','example_source','example_link','example_campaign'); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function($) { | |
$.fn.utm_tracking = function(domain, source, medium, campaign) { | |
$(this).find('a[href^="' + domain + '"]').each(function() { | |
var url = $(this).attr('href'); | |
$(this).attr( 'href', url + '?utm_source=' + source + '&utm_medium=' + medium + '&utm_campaign=' + campaign ); | |
}); | |
} | |
$.fn.utm_tracking_via_obj = function(domain, utmObj) { | |
utmObj = utmObj || $.utm_data_from_url(); | |
$(this).find('a[href^="' + domain + '"]').each(function() { |