save_person_db_table

Description

Fires during the saving/creating of an person record.

Usage

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

Parameters

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

Example

$app = \Liten\Liten::getInstance();

function save_nae_field($nae) {
    
    $nae->custom_field = $_POST['custom_field'];
    
}
$app->hook->add_action('save_person_db_table', 'save_nae_field', 10, 1);

Notes

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

Change Log

Since 6.1.10

Source File

save_person_db_table hook is located in app/routers/person.router.php.

See Also

Custom Fields