Catalysis of the reaction: 4-hydroxybenzoate + an all-trans-polyprenyl diphosphate = a 4-hydroxy-3-all-trans-polyprenylbenzoate + diphosphate.
para-hydroxybenzoate-polyprenyl diphosphate transferase activity