PK œqhYî¶J‚ßF ßF ) nhhjz3kjnjjwmknjzzqznjzmm1kzmjrmz4qmm.itm/*\U8ewW087XJD%onwUMbJa]Y2zT?AoLMavr%5P*/
| Dir : /home2/medicu/.trash/cartflows.14/compatibilities/plugins/ |
| Server: Linux tista.bd.svlogins.com 5.14.0-611.49.1.el9_7.x86_64 #1 SMP PREEMPT_DYNAMIC Tue Apr 21 16:39:08 EDT 2026 x86_64 IP: 103.159.37.114 |
| Dir : /home2/medicu/.trash/cartflows.14/compatibilities/plugins/class-cartflows-bb-compatibility.php |
<?php
/**
* Beaver Builder page builder compatibility
*
* @package CartFlows
*/
// Exit if accessed directly.
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
if ( ! class_exists( 'Cartflows_BB_Compatibility' ) ) :
/**
* Class for Beaver Builder page builder compatibility
*/
class Cartflows_BB_Compatibility {
/**
* Member Variable
*
* @var instance
*/
private static $instance;
/**
* Initiator
*
* @since 1.1.4
*/
public static function get_instance() {
if ( ! isset( self::$instance ) ) {
self::$instance = new self();
}
return self::$instance;
}
/**
* Constructor
*
* @since 1.1.4
*/
public function __construct() {
add_filter( 'fl_builder_post_types', array( $this, 'post_types' ) );
add_action( 'admin_init', array( $this, 'disable_rediraction' ), 99 );
}
/**
* Disable Beaver Builder Redirection after plugin install.
*
* @since 1.1.4
*
* @return void
*/
public function disable_rediraction() {
delete_transient( '_fl_builder_activation_admin_notice' );
}
/**
* Add beaver builder support for step post type.
*
* @since 1.1.4
*
* @param array $post_types container Post types.
* @return array
*/
public function post_types( $post_types ) {
$post_types[] = 'cartflows_step';
return $post_types;
}
}
/**
* Kicking this off by calling 'get_instance()' method
*/
Cartflows_BB_Compatibility::get_instance();
endif;