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.


Taidot: PHP, WordPress, JavaScript, MySQL, Tietojärjestelmäarkkitehtuuri

Näytä lisää: 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

Tietoa työnantajasta:
( 0 arvostelua ) Los Angeles, United States

Projektin tunnus: #27902978

7 freelancers are bidding on average $21/hour for this job


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 / tunti
(297 arvostelua)

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 Lisää

$25 USD / tunti
(125 arvostelua)

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 Lisää

$20 USD / tunti
(593 arvostelua)
(219 arvostelua)

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 Lisää

$17 USD / tunti
(51 arvostelua)

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 Lisää

$20 USD / tunti
(44 arvostelua)

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 Lisää

$20 USD / tunti
(0 arvostelua)