Fixed updated date when save webhooks on admin screen

This commit is contained in:
Claudio Sanches 2016-05-24 17:05:50 -03:00
parent b059c6b454
commit 2ddf19c447
1 changed files with 3 additions and 0 deletions

View File

@ -151,6 +151,9 @@ class WC_Admin_Webhooks {
// Topic
$this->update_topic( $webhook );
// Update date.
wp_update_post( array( 'ID' => $webhook->id, 'post_modified' => current_time( 'mysql' ) ) );
// Run actions
do_action( 'woocommerce_webhook_options_save', $webhook->id );