Description
The wsf_submit_create action runs whenever a submission record is created.
Usage
add_action( 'wsf_submit_create', 'my_hook_function', 10, 1 );
Parameters
$submitSubmit ObjectThe submit object.
Example
// Callback function for the wsf_submit_create action hook
function my_hook_function( $submit ) {
// Your code here ...
}
// Add a callback function for the wsf_submit_create action hook
add_action( 'wsf_submit_create', 'my_hook_function', 10, 1 );
Source File
This hook can be found in:<plugin root>/includes/core/class-ws-form-submit.php