Commit Graph

78 Commits

Author SHA1 Message Date
Mike Jolley 8631e981e1
Merge pull request #17987 from woocommerce/feature/12439-process-delivery-hook
Introduces woocommerce_webhook_process_delivery hook
2017-12-04 13:08:42 +00:00
Claudiu Lodromanean 19969636f3
Merge pull request #17985 from woocommerce/refactor/12439-improve-duration
Improve webhook delivery duration
2017-12-01 14:33:49 -08:00
Claudiu Lodromanean 6b8b93d66c
Merge pull request #17984 from woocommerce/refactor/12439-falied-delivery
Updated webhook failed delivery code and introduced new hook
2017-12-01 10:28:25 -08:00
Claudiu Lodromanean 1a2a332f54
Merge pull request #17939 from woocommerce/feature/17734
Apply Webhooks CRUD into REST API
2017-12-01 10:07:21 -08:00
Claudio Sanches b1fd3134c3 Introduces woocommerce_webhook_process_delivery hook 2017-12-01 14:33:30 -02:00
Claudio Sanches d6f54afbe5 Improve webhook delivery duration
Improved to conside the amount of time spent gathering all data and time sending request.

Closes #17010
2017-12-01 13:48:31 -02:00
Claudio Sanches 022f9a10a3 Updated webhook failed delivery code and introduced new hook 2017-12-01 12:08:13 -02:00
Claudio Sanches 01b3f2bac4 Trigger webhook when delivery URL is changed 2017-11-30 16:48:16 -02:00
Claudio Sanches 4d9203b841 Soft deprecated webhook deliveries REST API endpoints 2017-11-30 16:20:20 -02:00
Claudio Sanches 9b5d5b684b Fixed coding standards 2017-11-30 16:05:36 -02:00
Gerhard Potgieter 1e887c5afa Add deprecated param to docbloc 2017-11-20 08:13:55 +02:00
Gerhard Potgieter 0360801994 Add deprecated param to deprecated functions, use wc_print_r instead of print_r, PHPCS fix 2017-11-20 08:11:10 +02:00
Gerhard Potgieter ba451f68e4 Remove unused filter and deprecate get_delivery_log function. 2017-11-17 14:43:44 +02:00
Gerhard Potgieter 2ec3e5d045 Return url when requesting logs 2017-11-17 09:41:14 +02:00
Gerhard Potgieter 3adb2d8fce Use this as class reference, use info method for logging, use consistant log filename. 2017-11-17 09:03:32 +02:00
Gerhard Potgieter b11ab6d8d6 Convert comments to wc_logger logging, remove and deprecate unused functions and introduce a wc_get_log_file_name helper function. Still a couple of todos left regarding deprecating or removing filters related to comments. 2017-11-10 12:20:59 +02:00
Gerhard Potgieter e61160fabe PHPCS fixes for class-wc-webhook.php 2017-11-08 14:46:23 +02:00
Claudio Sanches b93a9732df Fixed validation of set_status and set_topic 2017-08-17 18:36:42 -03:00
Claudio Sanches 568aae5e0f Validate webhook topic before set 2017-08-17 17:57:09 -03:00
Claudio Sanches bf674bce6e Validate webhook status 2017-08-17 17:54:31 -03:00
Claudio Sanches d02a7655fd Allow numeric api version on Webhook CRUD 2017-08-17 12:18:32 -03:00
Claudio Sanches 00185c5911 Webhook data store 2017-08-17 00:08:32 -03:00
Claudio Sanches 256ad31130 Include missing date methods on Webhook CRUD 2017-08-16 21:40:31 -03:00
Claudio Sanches 20291a6305 Webhook CRUD 2017-08-16 21:20:02 -03:00
Claudio Sanches 069cf21c08 Use new CRUD actions to trigger Webhooks
Closes #16378
2017-08-10 13:56:17 -03:00
Mike Jolley 1e7b83b813 Cleanup meta after ping 2017-06-16 13:56:50 +01:00
Claudio Sanches 58b22f343a Fixed unicode characters when saving webhook delivery logs
Closes #15288
2017-06-05 15:25:29 -03:00
Mike Jolley cac5b33553 Merge pull request #14639 from atimmer/stories/webhook-public-build_payload
Change build_payload from private to public
2017-05-18 13:15:53 +01:00
claudiulodro 027e7b1f94 Add restored webhook 2017-04-27 11:44:57 -07:00
Anton Timmermans 82c2a2dd86
Change build_payload from private to public 2017-04-24 13:22:47 +02:00
Claudio Sanches c89cb04194 Fixed api version compare for #13872 2017-04-03 21:41:00 -03:00
Claudio Sanches 4922e17876 Include missing REST API v2 from webhooks options. 2017-04-02 03:07:09 -03:00
Claudio Sanches 59c2849736 Changed version 2.7 to 3.0 2017-03-15 13:36:53 -03:00
Brent Shepherd 4147935990 Fix undefined index notice in WC_Webhook 2017-02-02 12:52:00 -08:00
Claudio Sanches 461e2486d2 [2.6] Fixed when should deliver wp_trash_post 2016-11-24 16:07:32 -02:00
Claudio Sanches 5a0c815623 Allow set data using legacy API v3 and WP API integration in webhooks 2016-11-22 22:59:55 -02:00
Claudio Sanches 30f1d0bf66 Allow set api version 2016-11-22 21:49:04 -02:00
Aristeides Stathopoulos f2730eea02 WordPress.WhiteSpace.ControlStructureSpacing.BlankLineAfterEnd 2016-08-27 08:57:05 +03:00
Aristeides Stathopoulos 82f3cc221e WordPress.WhiteSpace.ControlStructureSpacing.NoSpaceBeforeOpenParenthesis 2016-08-27 07:23:02 +03:00
Aristeides Stathopoulos ec8a0b288b PHPCS: WordPress.Arrays.ArrayDeclaration.NoCommaAfterLast 2016-08-27 05:08:49 +03:00
Claudio Sanches 9da3f79f41 Introduces the woocommerce_webhook_order_payload_filters filter 2016-08-18 13:22:13 -03:00
Mike Jolley f7958f2b20 [2.6] Drafts don't have post_date_gmt
Fixes #11686

@claudiosmweb @justinshreve
2016-08-12 12:53:09 +01:00
Justin Shreve cad08747b9 Add bulk edit and quick edit to the list of hooks for the product.updated webhook. 2016-08-03 13:32:02 -07:00
Mike Jolley c3b34ff29e [2.6] Response body should be string in webhook class
Fixes #11514
2016-07-25 12:52:20 +01:00
Mike Jolley 730019ef18 scrutinizer best practice 2016-06-06 19:39:23 +01:00
Mike Jolley 3fd15ad50f Unused vars and code docs 2016-06-06 18:57:24 +01:00
Mike Jolley 9b590dfa75 Prevent both creation and update webhooks firing on product save.
Closes #10970 cc @claudiosmweb
2016-05-27 11:35:16 +01:00
Claudio Sanches c061d93d87 Added X-WC-Webhook-Source header in webhooks 2016-04-28 14:45:13 -03:00
matttallan fc503bb863 Add $arg param to the woocommerce_deliver_webhook_async filter 2016-04-01 17:05:24 +10:00
Claudio Sanches b6376b86c5 Trigger webhook when user edit addresses on frontend, closes #10505 2016-03-08 15:54:13 -03:00