: 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_ACFFile extends Tbp_Dynamic_Item {
function is_available() {
return class_exists( 'ACF' );
function get_category() {
return array( 'text', 'textarea', 'wp_editor', 'file', 'url' );
return __( 'ACF (File)', 'tbp' );
function get_value( $args = array() ) {
if ( ! empty( $args['key'] ) ) {
list( $group_id, $field_id ) = explode( ':', $args['key'] );
$cf_value = get_field( $field_id );
if ( ! empty( $cf_value['url'] ) ) {
$value = $cf_value['url'];
'label' => __( 'Field', 'tbp' ),
'options' => Tbp_Utils::get_acf_fields_by_type( 'file' ),