: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in
'enviragallery' => 'envira-gallery/envira-gallery.php',
'eventscalendar' => 'the-events-calendar/the-events-calendar.php',
'gallerycustomlinks' => 'wp-gallery-custom-links/wp-gallery-custom-links.php',
'maxgalleriamedialibpro' => class_exists('MaxGalleriaMediaLibPro',false),
'members' => 'members/members.php',
'pmpro' => 'paid-memberships-pro/paid-memberships-pro.php',
'rankmath' => 'seo-by-rank-math/rank-math.php',
'relatedposts' => 'wordpress-23-related-posts-plugin/wp_related_posts.php',
'smartcookie' => 'smart-cookie-kit/plugin.php',
'thrive' => 'thrive-visual-editor/thrive-visual-editor.php',
'wcmembership' => 'woocommerce-membership/woocommerce-membership.php',
'woocommerce' => 'woocommerce/woocommerce.php',
'wpml' => 'sitepress-multilingual-cms/sitepress.php',
'wpjobmanager' => 'wp-job-manager/wp-job-manager.php',
'eventsmadeeasy' => 'events-made-easy/events-manager.php',
'essentialgrid' => 'essential-grid/essential-grid.php',
'armember' => 'armember/armember.php',
'statcounter' => 'official-statcounter-plugin-for-wordpress/StatCounter-Wordpress-Plugin.php',
'eventtickets' => 'event-tickets/event-tickets.php',
'wpcourseware' => 'wp-courseware/wp-courseware.php',
'facetwp' => 'facetwp/index.php',
'kadence' => 'kadence-blocks/kadence-blocks.php',
'polylang2' => 'polylang/polylang.php',
'tutor' => 'tutor/tutor.php',
foreach ($plugins as $plugin => $active_check) {
if ($active_check === true || ( is_string($active_check) && Themify_Builder_Model::is_plugin_active($active_check) )) {
include( THEMIFY_BUILDER_INCLUDES_DIR . '/plugin-compat/' . $plugin . '.php' );
$classname = "Themify_Builder_Plugin_Compat_{$plugin}";
* Add tooltip to ".tb_$element_id" on frontend
public static function add_tooltip( $builder_id, $element_id, $options ) {
if ( ! isset( self::$tooltips[ $builder_id ] ) ) {
self::$tooltips[ $builder_id ] = array();
self::$tooltips[ $builder_id ][ $element_id ] = $options;
* Parse Builder settings for a component and add tooltip data
public static function display_tooltip($builder_id, $options, $type) {
if (isset($options['element_id']) && !empty($options['styling']['_tooltip'])) {
$tooltip = [ 't' => esc_html( $options['styling']['_tooltip'] ) ];
if (!empty($options['styling']['_tooltip_bg'])) {
$tooltip['bg'] = Themify_Builder_Stylesheet::get_rgba_color($options['styling']['_tooltip_bg']);
if (!empty($options['styling']['_tooltip_w'])) {
$unit = empty($options['styling']['_tooltip_w_unit']) ? 'px' : $options['styling']['_tooltip_w_unit'];
$tooltip['w'] = $options['styling']['_tooltip_w'] . $unit;
if (!empty($options['styling']['_tooltip_c'])) {
$tooltip['c'] = Themify_Builder_Stylesheet::get_rgba_color($options['styling']['_tooltip_c']);
self::add_tooltip( $builder_id, $options['element_id'], $tooltip );
* Check whether Dynamic Fields are being rendered atm
public static function is_rendering():bool {
return self::$is_rendering;
* Return Builder data for a post
public function get_builder_data($post_id) {//deprecated use ThemifyBuilder_Data_Manager
return ThemifyBuilder_Data_Manager::get_data($post_id);
* Return all modules for a post as a two-dimensional array
public function get_flat_modules_list($post_id = null, $builder_data = null, $only_check = false) {//deprecated use get_builder_modules_list
return self::get_builder_modules_list($post_id, $builder_data, $only_check);
function get_builder_output(?int $post_id, string $content = ''):?string {//deprecated use render
return self::render($post_id,$content);
public static function wpml_load_page_builders_integration() {
include( THEMIFY_BUILDER_INCLUDES_DIR . '/plugin-compat/wpml-translation.php' );
Themify_Builder_WPML_Integration::init();