wp_back/wp-content/plugins/visual-portfolio/classes/3rd/themes/class-thrive-architect.php

37 lines
743 B
PHP
Raw Normal View History

2024-05-20 15:37:46 +03:00
<?php
/**
* Thrive Architect Theme Builder.
* This builder overrides page output and we can't enqueue inline dynamic styles using `wp_add_inline_style`
*
* @package visual-portfolio
*/
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
/**
* Class Visual_Portfolio_3rd_Thrive_Architect
*/
class Visual_Portfolio_3rd_Thrive_Architect {
/**
* Visual_Portfolio_3rd_Thrive_Architect constructor.
*/
public function __construct() {
add_action( 'init', array( $this, 'init' ) );
}
/**
* Init action.
*/
public function init() {
if ( ! function_exists( 'tcb_custom_editable_content' ) ) {
return;
}
add_filter( 'vpf_enqueue_dynamic_styles_inline_style', '__return_false' );
}
}
new Visual_Portfolio_3rd_Thrive_Architect();