: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in
* @package Themify Builder Pro
* @link https://themify.me/
class Tbp_Dynamic_Item_ProductPrice extends Tbp_Dynamic_Item {
function is_available() {
return themify_is_woocommerce_active();
function get_category() {
return array( 'text', 'textarea', 'wp_editor' );
return __( 'Product Price', 'tbp' );
function get_value( $args = array() ) {
if(empty($args['post_id'])){
$the_query = Tbp_Utils::get_wc_actual_query();
if($the_query===null || $the_query->have_posts()){
$value = $product->get_price_html();
$product = wc_get_product( $args['post_id'] );
$value = $product->get_price_html();
'label' => __( 'Product ID', 'tbp' ),
'help' => __( 'Leave empty to get the data from current product in the loop.', 'tbp' ),