Feature Request - Add hide_class (hide-if-js) #13
wordpressvn
started this conversation in
Ideas
Replies: 3 comments
-
|
Beta Was this translation helpful? Give feedback.
0 replies
-
Add Password same Text field
|
Beta Was this translation helpful? Give feedback.
0 replies
-
Hi @wordpressvn, thanks for the suggestions! I need to think a little about if and how I'm going to implement this feature of hiding fields. Will certainly look at your implementation for inspiration. Password field makes a lot of sense and will be added. |
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
-
I propose the following additional feature, which has been tested and works well.
In the file vendor\jeffreyvanrossum\wp-settings\src\Options\OptionAbstract.php, add the code at line 89:
Replace all tags in vendor\jeffreyvanrossum\wp-settings\resources\views\options:
<tr valign="top" class="<?php echo $option->get_hide_class_attribute(); ?>">
In the file vendor\jeffreyvanrossum\wp-settings\src\WPSettings.php, add the following code:
Thanks
![hide-if-js](https://private-user-images.githubusercontent.com/45707210/257062070-1bce299e-7942-48a0-909f-a279dd672f99.gif?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk0MzE5MDUsIm5iZiI6MTczOTQzMTYwNSwicGF0aCI6Ii80NTcwNzIxMC8yNTcwNjIwNzAtMWJjZTI5OWUtNzk0Mi00OGEwLTkwOWYtYTI3OWRkNjcyZjk5LmdpZj9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTMlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjEzVDA3MjY0NVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTM1NDcyNGQ4OTRkYWI3MDFhMzE1M2IyNmFlZmRkYzE3ZDVjZTlmOWRhMmM2OGFkNjUwMTcwYTE4NjI0N2UwZDcmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.llcUy-CEkJsNzi1QDwFtCHXVniGgtFfubGZI-ZN_OYo)
Beta Was this translation helpful? Give feedback.
All reactions