fix wp callbacks in router