Plugin Directory

Changeset 2414019


Ignore:
Timestamp:
11/06/2020 04:38:46 PM (5 years ago)
Author:
servicebot
Message:

bug fixes

Location:
servicebot/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • servicebot/trunk/admin/class-servicebot-admin.php

    r2228151 r2414019  
    214214        add_settings_field(
    215215            'servicebot_servicebot_service_global_setting',
    216             'Servicebot Service',
     216            'Servicebot Service (Default service to use for non-billing page widgets)',
    217217            array( $this, 'servicebot_render_settings_field' ),
    218218            'servicebot_general_settings',
  • servicebot/trunk/public/class-servicebot-public.php

    r2251085 r2414019  
    175175function servicebot_webhook_listener() {
    176176
    177     register_rest_route( 'servicebot/v1', '/stripe-hooks', array(
    178         'methods'  => 'POST'
    179       ) );
     177    $rest_server = rest_get_server();
     178    $rest_args = array(
     179        'methods'  => 'POST',
     180    );
     181    $rest_server->register_route( 'servicebot/v1', '/stripe-hooks', $rest_args, false );
     182   
    180183
    181184    if ( $_SERVER['REQUEST_URI'] === '/servicebot/v1/stripe-hooks'){
     
    306309        http_response_code(200);
    307310    }
     311
     312    return $rest_server;
    308313}
    309314
    310 add_action( 'init', 'servicebot_webhook_listener' );
     315add_action( 'wp_loaded', 'servicebot_webhook_listener' );
  • servicebot/trunk/servicebot.php

    r2399608 r2414019  
    1717 * Plugin URI:        http://www.wpexplorer.com/servicebot/
    1818 * Description:       This is a short description of what the plugin does. It's displayed in the WordPress admin area.
    19  * Version:           1.1.7
     19 * Version:           1.1.8
    2020 * Author:            Servicebot
    2121 * Author URI:        https://servicebot.io
     
    3636 * Rename this for your plugin and update it as you release new versions.
    3737 */
    38 define( 'SERVICEBOT_VERSION', '1.1.7' );
     38define( 'SERVICEBOT_VERSION', '1.1.8' );
    3939
    4040/**
Note: See TracChangeset for help on using the changeset viewer.