init WP code