: 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_MediaLibrary extends Tbp_Dynamic_Item {
function get_category() {
return array( 'image', 'url' );
return __( 'Item from Media Library', 'tbp' );
function get_value( $args = array() ) {
if(isset($args['attachment_id'])){
$value = wp_get_attachment_url( $args['attachment_id'] );
'label' => __( 'ID', 'tbp' ),