Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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