Feature Request - Add css class option to add_option method #8
vikasbhvsr
started this conversation in
Ideas
Replies: 1 comment
-
Feature implemented in 1.1.0: $section->add_option('color', [
'name' => 'option_1',
'label' => __('Option 1', 'textdomain'),
'css' => [
'input_class' => 'example-class',
'label_class' => 'example-class',
]
] ); Thanks for suggesting! |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
First of all, a huge thanks for creating this amazing package. It is tremendously helpful to build quick WP Settings page with simple API and needless to say, it saves tons of time.
I have a feature request to add
css_class
option to theadd_option
method so we can pass built-in classes likeregular-text
,large-text
,all-options
and so on or custom css class toinput
elements. I suggest that the option would have capability to more than one css class separate by space.I sincerely you consider this.
Thank you.
Beta Was this translation helpful? Give feedback.
All reactions