So I've always used the following code snippet to force the default OG:Image and Twitter:Card image:
add_filter('wpseo_pre_analysis_post_content','mysite_opengraph_content');
function mysite_opengraph_content($val){return '<img src="https://www.rafaeldejongh.com/wp-content/uploads/2017/08/RafaelDeJongh-Web-Developer-3D-Artist.jpg" alt="Rafaël De Jongh - Web Developer | 3D Artist"/>' . $val;}
However this doesn't seem to work anymore, does anyone know a different way to solve this like it did in the past with above mentioned code?
Or in a way to improve upon this code I mocked up:
function default_opengraph(){return 'https://www.tzotkiekske.be/wp-content/uploads/2017/10/tzotkiekske-fb.jpg';}
add_filter('wpseo_opengraph_image','default_opengraph');
add_filter('wpseo_twitter_image','default_opengraph');
But which allows to add this to the OG:Images rather than replace it.