Skip to content

Instantly share code, notes, and snippets.

@mikejolley
Created September 14, 2015 14:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mikejolley/4cb504a486db70177e39 to your computer and use it in GitHub Desktop.
Save mikejolley/4cb504a486db70177e39 to your computer and use it in GitHub Desktop.
add_filter( 'woocommerce_get_variation_prices_hash', 'add_user_id_to_woocommerce_get_variation_prices_hash' );
function add_user_id_to_woocommerce_get_variation_prices_hash( $hash ) {
$hash[] = get_current_user_id();
return $hash;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment