Is there any way to do what I said in the title? I tried it that way but it seems to me that it does not perform the function:
<script>
function imgPrincProdu(){
return $('.flickity-slider > img').attr('src');
}
</script>
<meta property="og:image" content="javascript:imgPrincProdu()" />