WordPress is removing http:// from my urls
I can’t really tell you what exactly happens. However, if you work with wordpress, you can as well use the functions that wordpress provides, as they may give you more information about what is happening and why. Let’s use wp_remote_get for your function: function check_if_species_exists( $species_name ){ $species_name = sanitize_text_field( $species_name ); //never trust user … Read more