Last active
July 8, 2018 13:21
-
-
Save thebengalboy/329e35d08c5621dabd084ba693d29ccd to your computer and use it in GitHub Desktop.
WP User Frontend: Changing the height of wp-editor
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| add_filter( 'wpuf_textarea_editor_args', 'wpuf_editor_settings' ); | |
| function wpuf_editor_settings( $editor_settings ) { | |
| $editor_settings['editor_height'] = 20; | |
| return $editor_settings; | |
| } | |
| // Add this snippet(without php starting tag) on the theme function.php file | |
| // Note. you can change the height as per your needs. 20 is just for example. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment