update to use latest GA function
update to use wp_env check