wp_remote_get was causing the issue and switch over to a curl solution.
The code below replaced my old solution:
$serverIP = 'x.x.x.x';
$serviceAPI = '/Get_VacationRequest';
$jsonData = urlencode(json_encode($_REQUEST));
// Set up the server information where we will consume the API
$url="http://" . $serverIP . $serviceAPI . '?name=" . $jsonData;
// Start the curl session
$curl = curl_init();
curl_setopt($curl, CURLOPT_URL, $url);
// Send the request & save response to $resp
$resp = curl_exec($curl);
// Close request to clear up some resources
curl_close($curl);
Related Posts:
- Disable email notification after change of password
- __(): What if I have to pass in a variable?
- Run WP-CLI using PHP
- How to remove duplicate sub-menu name for top level menu items in a plugin?
- category_name not working (not showing up in sql query debug)
- How can I make my custom shortcode work in a Custom HTML Widget?
- PHP Deprecated: Non-static method should not be called statically
- WordPress Hook that will run when media file deleted
- Post source link plugin – small modification
- Which hook callback has priority if both plugin and theme use the same hook?
- Calling function from within functions.php returns unwanted value
- Ajax call doesn’t work in frontend but it’s working in backend (when I’m logged in)
- Check if a class exists within a method
- How can I make the “Preview Post” button save and preview in the same window?
- Escape special characters in image link
- Cannot run the code after I activate the plugin
- Displaying admin notice dynamically
- Get total number of comment of the posts written by an author
- force customers to add only single item to card per purchase EDD [closed]
- How to get post URL in the_content filter?
- How to replace or display the special characters from JSON API plugin [closed]
- Write to / remove from default .htaccess file from plugin?
- printf – problem to understand code
- Auto delete WordPress users according to time
- How to cancel WordPress’ action/filter when using OOP with anonymous callback
- Why isn’t admin_notices displaying my text? [Simple Plugin, Beginner]
- add_query_arg not working
- Programatically download a plugin
- Error shown for Trying to get property ‘roles’ of non-object in WordPress After Content for User Roles
- How to Use Parameters with a Do_Action Function Within PHP Tags
- Theme my Login plugin, how to update fields
- CSS from textarea in options page to frontend what to do
- How do I pass a post ID to the page URL?
- wp_set_auth_cookie causes 403 error in the wooCommerce checkout
- add image crop function like in wp customizer
- Calculate price and display on woocommerce product single page under price (simple price, variable price) [closed]
- Bootstrap and Custom CSS in custom plugin are being overwritten by theme
- Self-serve ad system like Reddit’s for WordPress? [closed]
- Create a plugin from within WordPress
- WordPress call_user_func_array() expects parameter 1 to be a valid callback, class
- Call plugin with php function
- Why is my custom post type not being activated on plug-in activation?
- What happens when WordPress memory limit is exceeded?
- how can I do something on new user registration?
- Any idea how to get something like this to work? [closed]
- wp_dequeue_script for a Plugin
- How do I add $_SESSION[”] to my wordpress page?
- Built a second plugin but it overwrote the first one
- WordPress: Add custom add_filter for custom functions
- How can i add simple code in only in posts by function.php
- Hide DIV if empty – Plugin Gallery
- How to change layout of shop page in wordpress? [closed]
- preg_replace() No ending delimiter ‘.’ found [closed]
- Retrieve Plugin Settings and insert into XML string
- Categories from front-end, checkbox selection doesn’t work
- WordPress Stats Plugin: Display Post Views [closed]
- Pagination not working
- How to fix these PHP Warnings with the “Feed JSON” plug-in?
- need to find duplicated meta value in custom filed and view the posts that have the same value
- Can I disable xml-rpc by setting it to false?
- Push Contact form 7 variable to front end after submission
- Add a parameter at the end of the url and prettify
- Calling PHP function with AJAX
- Share my WordPress plugin for updating how?
- Looping the data from WordPress database using foreach
- Rename a folder via HTML POST request
- How can I change page content for good once a button is pressed?
- Google Maps for Woocommerce Checkout
- working code, not working – Plugin Dev
- Add two row of code to the public static function init of a plugin
- Get and Update Most Meta Value as an array in HTML form
- Failed to load resource: the server responded with a status of 500 () post.php
- WordPress filter from custom table is not working properly
- Configuring default woo commerce login with modal popup
- register_activation_hook doesn’t fire at all
- My ajax request don´t work and return 0
- Adding link for logged in user? [closed]
- Adding link on title its in description but not in title see screenshots attached
- Editing Global Variables from Inside Functions
- How to save information related to post in database?
- Save selectlist value (taxonomy) in wp:wp_set_object_terms
- Page doesn’t load
- Posting code inside the post instead of in the template file using shortcode
- Metabox Data not saving
- Can anyone tell me why I can’t edit a plugin when it is installed without having to re-install?
- conditional tags for the output of a plugin
- Xml output not places where i want
- Can’t insert files in other inputs
- How to fix ‘Call to undefined function do_settings()’ error?
- How to tweak a plugin without preventing it from updating
- Place max_execution_time in plugin [closed]
- Passing an input variable through a switch statement
- How to add custom html to the Media > Attachment Details modal?
- Option value not getting updated until page refresh in WordPress
- Fatal error: Uncaught Error: Call to a member function fetch_array() on bool
- I want create woocommerec match products columns
- WordPress Custom Page Blog Template Pagination Problem (Pagination Not Displaying)
- How to override plugin function in code snippets WordPress
- Use inline callable for hooks and filters
- Error in using ‘admin_enqueue_scripts’ action through a class