Fires during the saving/creating of a staff record.
<?php $app->hook->add_action( 'save_staff_db_table', 'function_name' ); ?>
$nae: (object) (required) Staff object.
$app = \Liten\Liten::getInstance(); function save_staff_field($staff) { $staff->custom_field = $_POST['custom_field']; } $app->hook->add_action('save_staff_db_table', 'save_staff_field', 10, 1);
The save_staff_db_table hook is useful for intercepting posted data or for custom fields.
Since 6.1.12
save_staff_db_table hook is located in app/routers/staff.router.php.