Title: Action after database save
Last modified: August 22, 2016

---

# Action after database save

 *  Resolved [Marcus Downing](https://wordpress.org/support/users/marcusdowning/)
 * (@marcusdowning)
 * [11 years, 3 months ago](https://wordpress.org/support/topic/action-after-database-save/)
 * I’m adding a custom logger (a class extending `WSAL_AbstractLogger`) to run after
   the database logger and save the data another way. It would be helpful to be 
   able to capture the database ID that was generated. Would it be possible to get
   an action hook added at the end of `WSAL_Loggers_Database::Log()`, providing 
   the `WSAL_DB_Occurrence` instance? Something like:
 * `do_action('wsal_db_saved', $occ);`
 * [https://wordpress.org/plugins/wp-security-audit-log/](https://wordpress.org/plugins/wp-security-audit-log/)

Viewing 3 replies - 1 through 3 (of 3 total)

 *  [WPWhiteSecurity](https://wordpress.org/support/users/wpwhitesecurity/)
 * (@wpwhitesecurity)
 * [11 years, 3 months ago](https://wordpress.org/support/topic/action-after-database-save/#post-5745806)
 * Hi Marcus,
 * Thank you for showing interest in our plugins.
 * Action hooks are something we will be looking in the near future and will definitely
   consider this one, it makes sense to have it implemented.
 * You can subscribe to our [plugins newsletter](http://eepurl.com/Jn9sP) so you
   are advised once new features and updates are available.
 *  [WPWhiteSecurity](https://wordpress.org/support/users/wpwhitesecurity/)
 * (@wpwhitesecurity)
 * [10 years, 11 months ago](https://wordpress.org/support/topic/action-after-database-save/#post-5745958)
 * Hello Marcus,
 * I can finally confirm that this is something we are currently working on and 
   will be available in a future version.
 *  Thread Starter [Marcus Downing](https://wordpress.org/support/users/marcusdowning/)
 * (@marcusdowning)
 * [10 years, 11 months ago](https://wordpress.org/support/topic/action-after-database-save/#post-5745959)
 * Cool. Drop me a line if you need a beta-tester. A lot of our clients are interested
   in security audit and related areas, so we have an interest in having a good 
   to available for WordPress.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Action after database save’ is closed to new replies.

 * ![](https://ps.w.org/wp-security-audit-log/assets/icon-256x256.png?rev=2961534)
 * [WP Activity Log](https://wordpress.org/plugins/wp-security-audit-log/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-security-audit-log/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-security-audit-log/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-security-audit-log/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-security-audit-log/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-security-audit-log/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [Marcus Downing](https://wordpress.org/support/users/marcusdowning/)
 * Last activity: [10 years, 11 months ago](https://wordpress.org/support/topic/action-after-database-save/#post-5745959)
 * Status: resolved