: 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_PostFeaturedImage extends Tbp_Dynamic_Item {
function get_category() {
return array( 'image', 'url' );
return __( 'Post Featured Image', 'tbp' );
function get_value( $args = array() ) {
$size = isset($args['size'])?$args['size']:'thumbnail';
if(empty($args['post_id'])){
$the_query = Tbp_Utils::get_actual_query();
if($the_query===null || $the_query->have_posts()){
$value = get_the_post_thumbnail_url(null,$size);
$value = get_the_post_thumbnail_url($args['post_id'],$size);
return !empty($value)?$value:'';
'label' => __( 'Size', 'tbp' ),
'options' => themify_get_image_sizes_list( false ),
'label' => __( 'Post ID', 'tbp' ),
'help' => __( 'Leave empty to get the data from current post in the loop.', 'tbp' ),