After the first switch from the classic editor to FX Builder, a meta field should be set, and the content imported.
The ajax_import_data() function can be used, with minor modifications, to allow passing a post ID and then building a fake JSON payload to simulate an import. After the first import, the content of the classic editor should be wiped, and the migrated meta field should be set to 1.
As a UX improvement, the classic editor tab can be hidden, if the migrated meta field is 1.
After the first switch from the classic editor to FX Builder, a meta field should be set, and the content imported.
The
ajax_import_data()function can be used, with minor modifications, to allow passing a post ID and then building a fake JSON payload to simulate an import. After the first import, the content of the classic editor should be wiped, and themigratedmeta field should be set to1.As a UX improvement, the classic editor tab can be hidden, if the
migratedmeta field is1.