Home › Forums › ACF PRO › ACF Pro Cannot Connect to Update Server › Reply To: ACF Pro Cannot Connect to Update Server
After the index.php are usually arguments for what info is to be grabbed. For example, the get-info call (for checking the version):
The function used to grab this data from a remote server is:
(this function is called in ‘advanced-custom-fields-pro/pro/api/api-pro.php’, and is located in ‘wp-includes/http.php’)
wp_remote_post() is a WordPress function. As Hube2 said, it creates a WP_Http object, going through a chain of functions, eventually resulting in either cURL or streams being used.
The Wp_Http class is available to browse here:
This file contains all the actual functions for handling any sort of remote connection.
Inside the file, the 2 possible options (curl or streams) have classes associated with them.
The class WP_Http_Curl handles the cURL session, setting up options and handling errors. This class contains all of the functions ran (stuff like curl_init, curl_setopt, curl_exec).
If cURL isn’t used, then the class WP_Http_Streams handles the connection. This class contains all of the functions ran for the connection (stuff like stream_context_create, stream_socket_client ).
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
CPT registration is coming to ACF! We demoed the new feature during the most recent session of ACF Chat Fridays. Check out the summary for the details. https://t.co/k2KQ3WWBAz— Advanced Custom Fields (@wp_acf) March 7, 2023
© 2023 Advanced Custom Fields.