boonebgorges / buddypress-docs

GNU General Public License v3.0
106 stars 44 forks source link

Add filter to bp_docs_attachment_item_markup(). #686

Closed dcavins closed 3 years ago

dcavins commented 3 years ago

Allow the attachment list item html to be filtered. See issue #685.

boonebgorges commented 3 years ago

Looks good to me. The original reporter may not immediately see how to use this, so it might be helpful to show how you can filter to add the target="_blank" attribute to the link - something like str_replace( '<a ', '<a target="blank" ', $markup ).