removed wp specific function out from init