HEX
Server: nginx/1.26.1
System: Linux 850a3e23ecee 5.15.0-122-generic #132-Ubuntu SMP Thu Aug 29 13:45:52 UTC 2024 x86_64
User: (1000)
PHP: 8.2.27
Disabled: NONE
Upload Files
File: /var/www/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' );