WordPress function needed for non-blocking REST request.

I'm making a call to an internal endpoint in order to try and speed up a task.

I don't need to wait for the task (that awaits at that endpoint) to complete for my script to move on, but it's still waiting to finish. I'm using the following:

$argsForRequest = array(

'agency_code' => '1234',

'another_param_here' => $myVar,

'timeout' => 0.01,

'blocking' => false,

'sslverify' => false,


$request = new WP_REST_Request( 'POST', '/my/custom/endpoint' );

$request->set_query_params( $argsForRequest );

$response = rest_do_request( $request );

I'd like for someone to show me how to make this request non-blocking.


Kemahiran: PHP, Wordpress, JavaScript, MySQL, Kejuruteraan Perisian

Lihat lagi: call member function remove_current_page non object, non blocking driver object, non blocking connect socket, wordpress rest api endpoints, wp-async-task, how to call api in wordpress, wordpress backend processing, wordpress rest api authentication, wordpress enable rest api, wordpress long running script, wordpress rest api example, call member function recordcount non object, fatal error call member function set_file non object, wordpress blog needed, wordpress theme needed, async socket non blocking, wordpress developers needed, wordpress designer needed, website needed non profit organization, non blocking server linux

Tentang Majikan:
( 0 ulasan ) Los Angeles, United States

ID Projek: #27902978

7 pekerja bebas membida secara purata $21/jam untuk pekerjaan ini


Hi I am confident that I can do this job and get it done, Lets get started and discuss in depth. Looking forward for your reply. Thanks-

$22 USD / jam
(297 Ulasan)

Hi, I have read your post and understood your requirement. Looking for the freelancer to work on your next project? Or just need some issues/bugs/fixes ASAP? I have 11+ years of software experience in fortune 500 comp Lagi

$25 USD / jam
(125 Ulasan)

Hello. Wordpress development expert ready to help you with API call customization. I have more 400 good reviews and more 9 years of development experience behind, so all will be done with best quality and timeframe. F Lagi

$20 USD / jam
(593 Ulasan)
(219 Ulasan)

Dear, client. checked (WordPress function needed for non-blocking REST request.) I am expert in JavaScript, MySQL, PHP, Software Architecture, WordPress and have 10 years experience. So I can be the best developer Lagi

$17 USD / jam
(51 Ulasan)

I can help with the speed optimization part. You're losing 11% traffic and 7% conversions for every extra second of load time. I am an expert in this specific field of speed optimization and own a company from Romania Lagi

$20 USD / jam
(44 Ulasan)

Hello, dear! I am really glad to see you here! I have many experience with wordpress 4+ years. I am skillful with wordpress themes and plugins. And also I have some friends with good web and app skills. We will do an Lagi

$20 USD / jam
(0 Ulasan)