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