Changeset 2414019
- Timestamp:
- 11/06/2020 04:38:46 PM (5 years ago)
- Location:
- servicebot/trunk
- Files:
-
- 3 edited
-
admin/class-servicebot-admin.php (modified) (1 diff)
-
public/class-servicebot-public.php (modified) (2 diffs)
-
servicebot.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
servicebot/trunk/admin/class-servicebot-admin.php
r2228151 r2414019 214 214 add_settings_field( 215 215 'servicebot_servicebot_service_global_setting', 216 'Servicebot Service ',216 'Servicebot Service (Default service to use for non-billing page widgets)', 217 217 array( $this, 'servicebot_render_settings_field' ), 218 218 'servicebot_general_settings', -
servicebot/trunk/public/class-servicebot-public.php
r2251085 r2414019 175 175 function servicebot_webhook_listener() { 176 176 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 180 183 181 184 if ( $_SERVER['REQUEST_URI'] === '/servicebot/v1/stripe-hooks'){ … … 306 309 http_response_code(200); 307 310 } 311 312 return $rest_server; 308 313 } 309 314 310 add_action( ' init', 'servicebot_webhook_listener' );315 add_action( 'wp_loaded', 'servicebot_webhook_listener' ); -
servicebot/trunk/servicebot.php
r2399608 r2414019 17 17 * Plugin URI: http://www.wpexplorer.com/servicebot/ 18 18 * Description: This is a short description of what the plugin does. It's displayed in the WordPress admin area. 19 * Version: 1.1. 719 * Version: 1.1.8 20 20 * Author: Servicebot 21 21 * Author URI: https://servicebot.io … … 36 36 * Rename this for your plugin and update it as you release new versions. 37 37 */ 38 define( 'SERVICEBOT_VERSION', '1.1. 7' );38 define( 'SERVICEBOT_VERSION', '1.1.8' ); 39 39 40 40 /**
Note: See TracChangeset
for help on using the changeset viewer.