We pull the profile image from Twitter which is why this link exists, its loading the profile photo
Thread Starter
Karis
(@askel45)
Could you possibly create a filter to replace these images for all social media profiles with custom ones?
Thank you. We’ve made this change and it will be available in the next version of the plugin.
The filter you’d be able to use is rop_custom_tw_avatar. Once you pass a link to an image for that filter it will be what’s used as the avatar. You’d have to reconnect your account for the change to happen.
https://github.com/Codeinwp/tweet-old-post/pull/704/commits/58955ca57f4cff9a918fbbabcd4485417bbc21a4#diff-d3c6cc66f1feac7a9ec815319e93353005b3f431341b857a40ac9046f90818a8R310
—
If you have a second, would you mind leaving us a review at ww.wp.xz.cn?
https://ww.wp.xz.cn/support/plugin/tweet-old-post/reviews/?rate=5#new-post
We would really really appreciate it if you haven’t already! Thank you for your time and support.
Thread Starter
Karis
(@askel45)
How would the filter look like? An example is appreciated that I could copy-paste to my custom plugin.
@askel45 You’d add the following to a site specific plugin:
function rop_replace_tw_avatar(){
// replace link below with URL of image, try to make image 100x100px
return 'https://example.com/wp-content/uploads/2020/09/example.jpg';
}
add_filter('rop_custom_tw_avatar', 'rop_replace_tw_avatar');
You can create a site specific plugin using a plugin like this one: https://ww.wp.xz.cn/plugins/pluginception/
The change wont be possible until we release v8.6.0 which should be in the next few days
Thread Starter
Karis
(@askel45)
Thanks. I thought the URL would not work if I use return but you confirmed it should. I will wait for the update.
Thread Starter
Karis
(@askel45)
Worked. Tweaked the return bit but it is all good.
Awesome @askel45 ! I’m glad we could help.
If you have a second, would you mind leaving us a review at ww.wp.xz.cn?
https://ww.wp.xz.cn/support/plugin/tweet-old-post/reviews/?rate=5#new-post
We would really really appreciate it if you haven’t already! Thank you for your time and support.