Change WP object to WP config