Plugin Directory

Changeset 2158178


Ignore:
Timestamp:
09/18/2019 01:29:44 AM (7 years ago)
Author:
marcshowpass
Message:

update timeout on api call

Location:
showpass/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • showpass/trunk/showpass-wordpress-plugin-shortcode.php

    r2108326 r2158178  
    1212/* making connection and taking the data from API */
    1313function call_showpass_api($url) {
    14   $response = wp_remote_get($url);
     14  $args = array(
     15      'timeout' => 30,
     16  );
     17  $response = wp_remote_get($url, $args);
    1518  $http_code = wp_remote_retrieve_response_code($response);
    1619  if ($http_code === 200) {
  • showpass/trunk/showpass-wordpress-plugin.php

    r2126943 r2158178  
    55     Description: List events, display event details and products. Use the Showpass purchase widget for on site ticket & product purchases all with easy to use shortcodes. See our git repo here for full documentation. https://github.com/showpass/showpass-wordpress-plugin
    66     Author: Showpass / Up In Code Inc.
    7      Version: 3.3.2
     7     Version: 3.3.3
    88     Author URI: https://www.showpass.com
    99     */
Note: See TracChangeset for help on using the changeset viewer.