array( 'affected_fields' => array( 'height' => $this->get_modules(), ), ), ); } public function migrate( $field_name, $current_value, $module_slug, $saved_value, $saved_field_name, $attrs, $content, $module_address ) { // We need to sanitize only numeric values return is_numeric( $saved_value ) ? et_sanitize_input_unit( $saved_value, false, 'px' ) : $saved_value; } } return new ET_Builder_Module_Settings_Migration_DividerHeight();