You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I would like a filter to allow the text displayed on the link to be changed.
Use Case
For custom video providers, or for self-hosted videos, I'd like to be able to change this so it doesn't say "the original site" but instead get_bloginfo( 'name' ).
I'd also like to be able to change the "View on" prefix text, to "Watch this video on",
This can be done by sending the complete string (prefix + $provider) to a filter before adding it to the component.
The text was updated successfully, but these errors were encountered:
You should be able to filter the generic embed component's JSON and substitute the text for whatever you wish using the apple_news_embed_generic_json filter.
Description
apple-news/includes/apple-exporter/components/class-embed-generic.php
Line 257 in fcf5375
I would like a filter to allow the text displayed on the link to be changed.
Use Case
For custom video providers, or for self-hosted videos, I'd like to be able to change this so it doesn't say "the original site" but instead
get_bloginfo( 'name' )
.I'd also like to be able to change the "View on" prefix text, to "Watch this video on",
This can be done by sending the complete string (prefix +
$provider
) to a filter before adding it to the component.The text was updated successfully, but these errors were encountered: