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?
- Plugin update error message
- How can I make my custom shortcode work in a Custom HTML Widget?
- PHP Deprecated: Non-static method should not be called statically
- Set a User as Author of all ‘New Posts’ posted
- 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
- Escape special characters in image link
- 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?
- Write to / remove from default .htaccess file from plugin?
- 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]
- 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]
- WordPress 4.8.1 php getting commented
- Issue running db create table query from static method
- Can i add custom code in Source, Header from function.php?
- How to make multiple admin pages for one plugin?
- Problem with isset and $_POST
- Allowing users to Sign-up > Login > Post articles that need approval
- Use $variable from file1.php in file2.php (different file paths)
- Redeclare function after plugin activation
- get_edit_post_link() not working on wp-cron
- Woocommerce Backend Search by Title and SKU
- How to include a custom field in the woocommerce email?
- Adding a simple Javascript file with a plugin
- How to add/change (woocommerce) product tab icon
- Comment “like” problem – “users who like this” avatar linking to current user profile instead of “liker’s” profile
- I want to generate the pdf and save it in library?
- Wierd site output [closed]
- How to write to a separate PHP file in plugin settings
- Trying to make a simple wordpress plugin, having difficulties understanding how to make it?
- wordpress plugin license issue -New plugin development
- Dynamic Image Replacement through call rail phone call tracking plugins in wordpress
- How can I show registration form inside modal?
- How to display results from a data table with an encrypted user id?
- add_action for publish_post doesn’t work
- How to proper escape echo inside a javascript tag
- Checkbox show / hide output result
- Custom Logo Link WordPress
- How to convert Currency from USD to other IP Based currency in Php function
- How do I reinit WordPress plugins dynamically using jS?
- Attempting to list all product categories and the price range of all products within them
- WP Import All Multiple Dynamic Link Imports
- admin_notices show after load completed
- WordPress + python integration
- Newbie problem with adding include wp_footer
- Plugin which unlock free gift when you reach some amount in cart
- is there a way to display product gallery images via cdn
- How can I create a secure file download in WordPress?
- How can I see $post object in frontend from functions.php?
- Move plugin pages from dashboard to front-end
- Get post content inside plugin class method
- Ajax call to php function doesn’t work PHP code
- Python in WordPress – A “Hello World” implementation
- Compare Ajax Data Results
- WordPress PHP error getting posts from another wordpress blog
- Restrict role to use a plugin
- ACF Repeater Field Question [closed]
- How to create a dashboard for logged-in users with custom functionality? [closed]
- Cannot access variables within a widget
- How do I convince this button to do something when it is clicked?
- WordPress function to add text
- TheCartPress plugin – Make every item in store unique
- Postal address auto-complete on profile page
- Doing action based on input from options menu
- Insert dynamic content into posts
- WordPress Related Plugin – Adding an image
- WordPress User Frontend Editing Custom Fields
- My wordpress site wont load, it gives header error warnings
- Can anyone see a syntax error in this? [closed]
- Strict Standards: Non-static method in sidebar generator
- Fast Tranfering my WordPress site to another server
- Duplicating wordpress install issue
- wp_handle_upload – specified file failed upload test
- How to change all the urls of the WordPress site?
- How do I remove the filter from the orders and add custom status in Dokan?
- How to make a Template page to show the information of different things Shop and Product page?
- Split Million WordPress Post’s Into Multiple Database Server
- I want to allow certain file types on dokan upload files
- How to create different woocommerce single_product.php pages for each product? [closed]
- Parse error : syntax error, unexpected ‘)’ in