helpful_feedback_noavatar

This filter allows you to specify the HTML for the avatar that will be used when a feedback user does not have an avatar.

/**
 * @param string $html
 * @return string
 */
add_filter('helpful_feedback_noavatar', function(string $html) {
    // %1$s = default no avatar url, %2$s = default size
    $html = '<img src="%1$s" height="%2$s" width="%2$s" alt="no avatar">';
    return $html;
});

Was this post helpful?

Top