Add wp update function wrapper