how to prevent custom fields deletion ?
-
Hello,
Is there a way to disable deletion of a specific custom field ?
Something like:add-action('some_event_related_to_customfields', function(){ sommething_postmeta('my-metakey', [' allow-delete' => false]});
May be too simplistic ?
This question refers to native custom fields, not “ACF” or “Carbon Fields” (I know the way for these types of fields)
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘how to prevent custom fields deletion ?’ is closed to new replies.