Skip to:
Content
Pages
Categories
Search
Top
Bottom

oEmbed vedio as Group / Post avatar?

  • Avatar of imjscn
    imjscn
    Participant

    @imjscn

    Hello,
    I want to replace the Group or other components avatars with embed vedio. I know how to modify bp_fetch_avatar, but how to make oEmbed working with this?
    Thanks!

Viewing 2 replies - 1 through 2 (of 2 total)
  • Avatar of r-a-y
    r-a-y
    Moderator

    @r-a-y

    Interesting use case. This is something I wouldn’t add to the plugin.

    However, to give you a few pointers, you could use the wp_oembed_get() function on the raw group avatar URL. Unless you create the appropriate caching functions, I would not recommend this as oEmbed returns with wp_oembed_get() are not cached and would generate an external request every time the group avatar is fetched.

    Avatar of imjscn
    imjscn
    Participant

    @imjscn

    Thanks! I will try to get it, then, work on how to cache it.

Viewing 2 replies - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.