Add this hook to admin.php to override a field description on the fly.
wire()->addHookBefore('Inputfield::render', function(\ProcessWire\HookEvent $event) {
// This prevents a “Method ProcessField::getPage does not exist or is not callable in this context” error on /setup/field/, etc
if (\ProcessWire\wire()->process != 'ProcessPageEdit') return;
$field = $event->object;
if ($field->name == 'yourFieldNameGoesHere') {
$description = 'Your description goes here';
$field->set('description', $description);
}
});
Tim Bennett is a web designer and developer. He has a First Class Honours degree in Computing from
Leeds Metropolitan University and currently runs his own one-man web design company, Texelate.