Log changes to the pledge logo

This commit is contained in:
Kelly Dwan 2019-11-26 16:34:41 -05:00
parent f37800fca6
commit a434e68ec5
No known key found for this signature in database
GPG key ID: 8BA5575F3D11575D

View file

@ -187,6 +187,15 @@ function capture_updated_postmeta( $meta_id, $object_id, $meta_key, $meta_value
$meta_key => $meta_value,
)
);
} else if ( '_thumbnail_id' === $meta_key ) {
add_log_entry(
$object_id,
'pledge_logo_changed',
sprintf(
'Changed logo to <code>%s</code>.',
get_the_post_thumbnail_url( $object_id, 'pledge-logo' )
)
);
}
}