Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save arjenblokzijl/251ab052bc987983a4b6 to your computer and use it in GitHub Desktop.
Save arjenblokzijl/251ab052bc987983a4b6 to your computer and use it in GitHub Desktop.
ProcessWire remove system flag from field
<?php
$field = $fields->get("field_name_here"); // Insert system field i.e. roles
$field->flags = Field::flagSystemOverride;
$field->flags = 0;
$field->save();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment