Replace functions php after wp is installed