Through

Through[p[f][x]]
gives p[f[x]].