how to allow, limitation of extended fields in the cfs_field class
-
Hello, greetings.
Congratulations for the plugin, despite its simplicity, it fulfills to add custom things to wordpress.
I am adding a custom field similar to the user field, extending the cfs_field class.
The only problem I saw is that when I add the limitations, it doesn’t take them in the backend.
from what I saw in the code, it is because there is no filter that allows other fields to be accepted, that is what I see so far.
the code to which I refer is in
plugins\custom-field-suite\includes\form.php
line 344
where I have to add a filter as follows
php $typesValidation = apply_filters('cfs_form_types_validation', [ 'relationship', 'user', 'loop' ]); if ( in_array( $field->type, $typesValidation ) ) {
I still can’t find another way to do this without modifying the plugin code
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘how to allow, limitation of extended fields in the cfs_field class’ is closed to new replies.