save_staff_db_table

Description

Fires during the saving/creating of a staff record.

Usage

<?php $app->hook->add_action( 'save_staff_db_table', 'function_name' ); ?>

Parameters

$nae: (object) (required) Staff object.

Example

$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);

Notes

The save_staff_db_table hook is useful for intercepting posted data or for custom fields.

Change Log

Since 6.1.12

Source File

save_staff_db_table hook is located in app/routers/staff.router.php.

See Also