# cartflows/1.1.2/classes/class-cartflows-thrive-compatibility.php

CartFlows – Funnel Builder &amp; Checkout Plugin for WooCommerce, version 1.1.2. 64 lines.

- Page: https://pluginprobe.com/plugins/cartflows/1.1.2/code/classes/class-cartflows-thrive-compatibility.php
- Raw: https://pluginprobe.com/plugins/cartflows/1.1.2/raw/classes/class-cartflows-thrive-compatibility.php
- Modified: 2019-01-04T06:42:10+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/cartflows/1.1.2/code/classes/class-cartflows-thrive-compatibility.php#L10-L20`.

```php
<?php
/**
 * Thrive Visual Editor Compatibility
 *
 * @package CartFlows
 */

/**
 * Class for Thrive Visual Editor Compatibility
 */
class Cartflows_Thrive_Compatibility {

	/**
	 * Member Variable
	 *
	 * @var instance
	 */
	private static $instance;

	/**
	 *  Initiator
	 */
	public static function get_instance() {
		if ( ! isset( self::$instance ) ) {
			self::$instance = new self;
		}
		return self::$instance;
	}

	/**
	 *  Constructor
	 */
	public function __construct() {

		// Add CartFlows post type in the thrive page editor.
		add_filter( 'tve_landing_page_post_types', array( $this, 'send_post_type_to_thrive' ) );

		add_filter( 'tcb_can_use_landing_pages', array( $this, 'send_post_type_to_thrive' ) );

		add_filter( 'tcb_has_templates_tab', array( $this, 'send_post_type_to_thrive' ) );
	}

	/**
	 * Return step post type for Thrive Architect.
	 *
	 * @since 1.0.0
	 * @param array $post_type_pt the current step post type.
	 * @return array $post_type_pt current step post type.
	 */
	function send_post_type_to_thrive( $post_type_pt ) {

		$post_type_pt = array();

		$post_type_pt[] = CARTFLOWS_STEP_POST_TYPE;

		return $post_type_pt;
	}
}

/**
 *  Kicking this off by calling 'get_instance()' method
 */
Cartflows_Thrive_Compatibility::get_instance();

```
