Plugin Directory

Changeset 2510285


Ignore:
Timestamp:
04/06/2021 07:17:06 PM (5 years ago)
Author:
marcshowpass
Message:

update for api response errors

Location:
showpass/trunk
Files:
2 edited

Legend:

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

    r2505628 r2510285  
    2626  if ($http_code === 200) {
    2727    return wp_remote_retrieve_body($response);
    28   } else {
    29     print_r ($response);
    3028  }
    3129}
     
    182180    // encode json data to return properly
    183181    $data = json_encode($data);
    184 
    185182    if ($template == "data") {
    186183      return $data;
  • showpass/trunk/showpass-wordpress-plugin.php

    r2505628 r2510285  
    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.5.7
     7     Version: 3.5.8
    88     Author URI: https://www.showpass.com
    99     */
     
    1616* create custom plugin settings menu
    1717*************************************/
    18 add_action('admin_menu', 'wpshp_admin_menu');
    1918
    2019/**
     
    3534    /* create new top-level menu */
    3635    add_menu_page('Showpass Events API', 'Showpass API', 'administrator', __FILE__, 'wpshp_settings_page', plugins_url('/images/icon.png', __FILE__));
     36}
    3737
    38     /* call register settings function */
    39     add_action('admin_init', 'register_wpshp_settings');
    40 }
     38add_action('admin_menu', 'wpshp_admin_menu');
    4139
    4240function register_wpshp_settings() {
     
    5452}
    5553
     54/* call register settings function */
     55add_action('admin_init', 'register_wpshp_settings');
     56
    5657/******************************
    5758*  includes
Note: See TracChangeset for help on using the changeset viewer.