logger->import_log( '(✕) Not have "Gutenberg" Data. Post content is empty!' ); } else { wcf()->logger->import_log( '(✓) Processing Request..' ); // Update hotlink images. $content = CartFlows_Importer::get_instance()->get_content( $content ); // Fix for gutenberg invalid html due & -> & -> \u0026amp. $content = str_replace( '&', "\u0026amp;", $content ); // Update post content. wp_update_post( array( 'ID' => $post_id, 'post_content' => $content, ) ); wcf()->logger->import_log( '(✓) Process Complete' ); } } } /** * Initialize class object with 'get_instance()' method */ CartFlows_Importer_Gutenberg::get_instance(); endif;