formcierge_entry_starred
Action
Since v1.0.0
Fires when an entry is starred or unstarred in the admin. The second parameter indicates the new starred state.
Parameters
$entry_id
int
The ID of the entry.
$starred
bool
True when starred, false when unstarred.
includes/Controllers/EntryController.php
Basic Usage
add_action( 'formcierge_entry_starred', function ( $entry_id, $starred ) {
if ( $starred ) {
my_crm_flag_entry( $entry_id );
}
}, 10, 2 );