Skip to content

Commit 718d274

Browse files
rithikb24facebook-github-bot
authored andcommitted
hook into WordPress meta updates for change tracking (facebook#3574)
Summary: Rollback Plan: Differential Revision: D81231378
1 parent 7d0c635 commit 718d274

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

facebook-commerce.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -383,6 +383,10 @@ public function __construct( WC_Facebookcommerce $facebook_for_woocommerce ) {
383383

384384
// Init Whatsapp Utility Event Processor
385385
$this->wa_utility_event_processor = $this->load_whatsapp_utility_event_processor();
386+
387+
// Track programmatic changes that don't update post_modified
388+
add_action( 'updated_post_meta', array( $this, 'update_last_change_time' ), 10, 4 );
389+
386390
}
387391

388392
/**

0 commit comments

Comments
 (0)