field/before_render doesn’t accept field name
-
Hey!
I think I just found a bug.
The documentation says the filter “af/field/before_render” has 3 variations:
add_filter( ‘af/field/before_render’, ‘modify_field’, 10, 3 );
add_filter( ‘af/field/before_render/name=FIELD_NAME’, ‘modify_field’, 10, 3 );
add_filter( ‘af/field/before_render/key=FIELD_KEY’, ‘modify_field’, 10, 3 )But in the “form-rendering.php” there are these 3 types:
‘af/field/before_render’
‘af/field/before_render/id=’ . $form[‘post_id’]
‘af/field/before_render/key=’ . $form[‘key’]So it’s not possible to add the filter to a certain field.
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘field/before_render doesn’t accept field name’ is closed to new replies.