Removing a filter from a form element

To remove a filter from a form element, find the code that creates and configures the element in process.php. Look for the line that is adding the filters e.g.

1
$element->addFilter('trim');
$element->addFilter('trim');

Remove the line to remove the filter.

Elements with multiple filters

1
$element->addFilters(array('stripTags', 'trim'));
$element->addFilters(array('stripTags', 'trim'));

To remove only the stripTags filter:

1
$element->addFilters(array('trim'));
$element->addFilters(array('trim'));

To remove both the filters delete or comment out the entire line.

Be inspired. © 2024 ThemeCatcher Ltd. 20-22 Wenlock Road, London, England, N1 7GU | Company No. 08120384 | Built with React | Privacy Policy