Skip to content

Instantly share code, notes, and snippets.

@thebengalboy
Last active July 8, 2018 13:21
Show Gist options
  • Select an option

  • Save thebengalboy/329e35d08c5621dabd084ba693d29ccd to your computer and use it in GitHub Desktop.

Select an option

Save thebengalboy/329e35d08c5621dabd084ba693d29ccd to your computer and use it in GitHub Desktop.
WP User Frontend: Changing the height of wp-editor
<?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