Skip to content

Instantly share code, notes, and snippets.

@stianandreassen
stianandreassen / acf_wysiwyg_height.php
Last active January 24, 2022 22:35
Add a height field to ACF WYSIWYG Field
<?php
/**
* Add height field to ACF WYSIWYG
*/
function wysiwyg_render_field_settings( $field ) {
acf_render_field_setting( $field, array(
'label' => __('Height of Editor'),
'instructions' => __('Height of Editor after Init'),
'name' => 'wysiwyg_height',
'type' => 'number',