formcierge_can_edit_entry_data
Filter
Since v1.0.0
Control whether the current user can edit field values on a specific entry. Return false to make the entry read-only.
Parameters
$can_edit
bool
Whether editing is allowed. Default: true for admins.
$entry_id
int
The entry ID.
includes/Controllers/EntryController.php
Basic Usage
add_filter( 'formcierge_can_edit_entry_data', function ( $can_edit, $entry_id ) {
if ( my_entry_is_completed( $entry_id ) ) {
return false;
}
return $can_edit;
}, 10, 2 );