HEX
Server: LiteSpeed
System: Linux pbn-10.isgood.host 5.15.0-164-generic #174-Ubuntu SMP Fri Nov 14 20:25:16 UTC 2025 x86_64
User: pg88zccom (1239)
PHP: 8.1.32
Disabled: NONE
Upload Files
File: /usr/local/lsws/pg88zc.com/html/wp-content/themes/flatsome/inc/builder/filters.php
<?php

/**
 * Enable the native editor when saving a page builder layout.
 * HS ticket #179473
 *
 * @param bool $is_translation_with_native_editor Whether to use native editor for translation.
 *
 * @return bool
 */
function ux_builder_is_editing_translation_with_native_editor( $is_translation_with_native_editor ) {
	if ( isset( $_POST['action'] ) && 'ux_builder_save' === $_POST['action'] ) {
		return true;
	}

	return $is_translation_with_native_editor;
}

add_filter( 'wpml_pb_is_editing_translation_with_native_editor', 'ux_builder_is_editing_translation_with_native_editor' );