: 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_PostAuthorAvatar extends Tbp_Dynamic_Item {
function get_category() {
return __( 'Post Author Avatar', 'tbp' );
function get_value( $args = array() ) {
$size=isset( $args['size'] ) ?(int)$args['size'] :96;
$the_query = Tbp_Utils::get_actual_query();
if($the_query===null || $the_query->have_posts()){
$user_id = get_post_field( 'post_author');
$value = get_avatar_url( $user_id, array( 'size' =>$size) );
'label' => __( 'Size', 'tbp' ),
'help' => __( 'Height and width of the avatar in pixels. Default is 96.', 'tbp' )