wsf_submit_status

Description

The wsf_submit_status action runs whenever a submission record status is changed.

The available statuses are:

  • draft (In Progress)
  • publish (Submitted)
  • error (Error)
  • spam (Spam)
  • trash (Trashed)

Usage

add_action( 'wsf_submit_status', 'my_hook_function', 10, 2 );

Parameters

  1. $submit_id Integer
    The submission record ID.
  2. $status String
    The new status of the submission record.

Example

// Callback function for the wsf_submit_status action hook
function my_hook_function( $submit_id, $status ) {
	
	// Your code here ...
}

// Add a callback function for the wsf_submit_status action hook
add_action( 'wsf_submit_status', 'my_hook_function', 10, 2 );

Source File

This hook can be found in: <plugin root>/includes/core/class-ws-form-submit.php