Search code examples
wordpressredux-framework

Redux Framework - How to use the redux/validate/{opt_name}/class/{field.validate} filter


I'm working on a custom field extension and all I have left is to include a validator for that field. I figured I'd need to use the redux/validate/{opt_name}/class/{field.validate} filter, but I have no clue whatsoever what I need to replace the {field.validate} with. I tried the field name, but did not work.

The redux support tells me this is premium support (?) which is kinda insane, the documentation does NOT explain what the {field.validate} is referring to, and I think that shouldn't be premium support...

Anyhow, is there anyone who knows how to use this filter?


Solution

  • Lead dev of Redux here.

    {field.validate} would be the validation class you specified in the field.

    So whatever you called it (field=> array('validate' => 'reallyCoolValidation') you'd replace with reallyCoolValidation. ;)