Automattic / republication-tracker-tool

Provides a Creative Commons sharing button and tracking mechanism that integrates with Google Analytics to track republished articles from external websites.
https://wordpress.org/plugins/republication-tracker-tool/
GNU General Public License v2.0
8 stars 8 forks source link

Should the shareable content be filterable? #59

Open joshdarby opened 5 years ago

joshdarby commented 5 years ago

We've been asked by a user if there's a way to add custom fields into the shareable content field.

Currently, the plugin just grabs post_content from the $post object without using a filter.

https://github.com/INN/republication-tracker-tool/blob/20f38ba96b817bb3798865a9c9f43e7af322c65b/includes/shareable-content.php#L43-L48

Should we investigate adding the ability to make the content filterable?

benlk commented 3 years ago

https://github.com/Automattic/republication-tracker-tool/pull/53 added a filter to the allowed tags for wp_kses, but does not add a filter directly on the post.