Skip to:
Content
Pages
Categories
Search
Top
Bottom

Where is activity status update $content built before entering in wp_bp_activity


  • terraling
    Participant

    @terraling

    I want to customise the activity status update. Currently if you post an entry that includes a recognisable URL, BuddyPress will wrap the URL to create a clickable link before it gets entered into wp_bp_activity.

    I’ve combed through the source code and can’t find where that happens.

    For now, all I want to do is add target=”_blank” to the link, and I’m thinking I might need to hook into one of the bp_activity filters to apply a regexp to $content to make the change, but if I could find where $content is constructed and the link added in the first place it might be possible to make the change there.

    Thanks

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

  • Henry Wright
    Moderator

    @henrywright

    Do you mean immediately after you’ve submitted? That is usually the result of JavaScript. Take a look in buddypress-functions.php or global.js if you are still using bp-default.


    terraling
    Participant

    @terraling

    Thanks for the reply Henry, but it doesn’t happen in either global.js or buddypress-functions.php as far as I can tell.


    Henry Wright
    Moderator

    @henrywright

    Can you view the source? Try looking for a CSS class that could be unique – then search for that class in the BP plugin files. I’ve found this to be a good way of finding which file is outputting the markup


    terraling
    Participant

    @terraling

    It adds a wrapper with rel=”nofollow” in the link, and so I’ve searched for occurrences of that, but not found the right one.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Where is activity status update $content built before entering in wp_bp_activity’ is closed to new replies.
Skip to toolbar