the new sample hook for wpg_after_perform_commit.