Closed j7-dev closed 9 months ago
The attributes
feature was removed last year as it was designed for something we never used. You'll have to use the field arguments instead. I'll update the docs to get rid of all that old data.
Thank for reply.
So...if I want to use
<input type="password" />
<input type="number" min="0" max="10000" />
I have to extend these fields by using my custom extension right?
Basically. Redux has a password
field, but it doesn't have min
or max.
You could easily take that field and use it to make a custom extension. Be sure to change the class name so it doesn't conflict.
Alternatively, if you're proficent in in it, you could use some custom JavaScript to add attributes to existing Redix fields. I've seen it done many times.
Issue
attribute
not working withtext
field.Reproduce the issue
I followed the document here
But It seems not working 🔽
Expected result
Trace the source code
I trace code here
redux-framework/redux-core/inc/fields/text/class-redux-text.php
I can't find any keyword with
attributes
inclass-redux-text.php
, it seemsattributes
key do NOTHING inclass-redux-text.php