Plugin: Add a system for logging events related to pledges and contributors (#54)

Uses action hooks to capture relevant events as log entries on a per-pledge basis. This provides a running history of a pledge and can be used as an audit log if questions arise about changes to a pledge or there are weird bugs.

Fixes #39
This commit is contained in:
Corey McKrill 2019-10-29 12:46:13 -07:00 committed by GitHub
parent 6209060eb2
commit 5c5ae83287
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 424 additions and 18 deletions

View file

@ -90,9 +90,7 @@ function process_form_new() {
return $new_pledge_id;
}
foreach ( $contributors as $wporg_username ) {
Contributor\create_new_contributor( $wporg_username, $new_pledge_id );
}
Contributor\add_pledge_contributors( $new_pledge_id, $contributors );
// Attach logo to the pledge.
wp_update_post( array(