# wpfunnels/3.12.4/admin/import-export/batch-processing/divi/class-wpfnl-divi-source.php

WPFunnels – Funnel Builder for WooCommerce with Checkout &amp; One Click Upsell, version 3.12.4. 47 lines.

- Page: https://pluginprobe.com/plugins/wpfunnels/3.12.4/code/admin/import-export/batch-processing/divi/class-wpfnl-divi-source.php
- Raw: https://pluginprobe.com/plugins/wpfunnels/3.12.4/raw/admin/import-export/batch-processing/divi/class-wpfnl-divi-source.php
- Modified: 2024-01-11T09:36:08+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/wpfunnels/3.12.4/code/admin/import-export/batch-processing/divi/class-wpfnl-divi-source.php#L10-L20`.

```php
<?php
/**
 * Divi source
 *
 * @package WPFunnels\Batch\Divi
 */

namespace WPFunnels\Batch\Divi;

use WPFunnels\Importer\Wpfnl_Importer_Helper;

/**
 * Divi source
 *
 * @package
 */
class Wpfnl_Divi_Source {


	/**
	 * Import single template

	 * @param string $step_id Funnel Step Id.
	 *
	 * @return array|int|void|\WP_Error
	 *
	 * @since 1.0.0
	 */
	public function import_single_template( $step_id ) {
		
		add_filter( 'wp_kses_allowed_html', array( $this, 'allowed_tags_and_attributes' ), 10, 2 );
		$content = get_post_field( 'post_content', $step_id );
		if ( $content ) {
			$content = Wpfnl_Importer_Helper::get_instance()->get_post_contents( $step_id );
			wp_update_post(
				array(
					'ID'           => $step_id,
					'post_content' => $content,
				)
			);

			// Delete temporary meta key.
			delete_post_meta( $step_id, 'divi_content' );
		}
	}
}

```
