caldera_forms_change_entry_status

Fires after selected entries' status is updated.

Description

do_action( 'caldera_forms_change_entry_status', (array) $entry_ids, (string) $status ); 

Parameters (2)

0. $entry_ids (array)
Array of entries changed
1. $status (string)
The status.

Usage

To run the hook, copy the example below.
  1. // run the action 
  2. do_action( 'caldera_forms_change_entry_status', $entry_ids, $status ); 
The following example is for adding a hook callback.
  1. // define the caldera_forms_change_entry_status callback 
  2. function action_caldera_forms_change_entry_status( $entry_ids, $status ) { 
  3. // make action magic happen here... 
  4. }; 
  5.  
  6. // add the action 
  7. add_action( 'caldera_forms_change_entry_status', 'action_caldera_forms_change_entry_status', 10, 2 ); 
To remove a hook callback, use the example below.
  1. // remove the action 
  2. remove_action( 'caldera_forms_change_entry_status', 'action_caldera_forms_change_entry_status', 10, 2 ); 

Defined (1)

The action is defined in the following location(s).

/classes/entry/bulk.php  
  1. do_action( 'caldera_forms_change_entry_status', $entry_ids, $status );