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.
Defined in
includes/Controllers/EntryController.php
add_action( 'formcierge_entry_starred', function ( $entry_id, $starred ) {
    if ( $starred ) {
        my_crm_flag_entry( $entry_id );
    }
}, 10, 2 );