remove wp function