Remove the question mark from the permalink with the product tag


try to unlink add_action (& # 39; init & # 39 ;, & # 39; do_rewrite & # 39;);
Function do_rewrite () {

add_rewrite_rule (& # 39; ^ store / (^ /) *) / ((a-z) +) /? & # 39 ;, & # 39; index.php? product_cat = $ matches (1) & product_tag = $ matches (2) & # 39 ;, & # 39; top & # 39;);

flush_rewrite_rules ();

}