How do i get file_get_contents to work in wordpress
It seems file_get_contents() isn’t active in your server. Instead, use the wp_remote_get(). Note wp_remote_get() is among the family of WordPress HTTP API specifically used for sending GET requests. The advantage of wp_remote_get() over file_get_contents() and other PHP stream/transport function is – The WordPress HTTP API was created to standardize a single API that handled everything … Read more