• Resolved scritrs

    (@scritrs)


    Dear Marcin,
    thank you for the great plugin, it does just what it says without lengthy configs and unnecessary overhead.
    There is one problem, though. At least in connection with a divi based layout, WhatsApp fails to pick up the og:image. I’ve not found this documented somewhere but resorted to trial and error and WhatsApp needs the og:image tag fairly close to the top of the <head>. Currently you enqueue it with a priority of 9, I changed the priority to 0 and now the preview image is taken from the og:image in WhatsApp, too. (Note: facebook, twitter, signal and Threema don’t care about the position of the og meta tags, there it always works).
    Best regards, RS

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Marcin Pietrzak

    (@iworks)

    hi @scritrs

    It is very interesting catch …

    I added the filter og_wp_head_prioryty to change prioryty,

    
    add_filter( 'og_wp_head_prioryty', '__return_zero' );
    

    Could you update into 2.9.5 and test this filter?

    Marcin

    Thread Starter scritrs

    (@scritrs)

    Hi @iworks,
    thanks for the quick action ??
    I didn’t get it to work so far because I didn’t find the correct hook to set the filter, though. It appears to be tricky to have the apply_filters inside the constructor. Where would you suggest putting the add_filter()?
    best regards, RS

    Plugin Author Marcin Pietrzak

    (@iworks)

    @hi @scritrs

    You can put it anywhere. As a super-small plugin, as a mu-plugin or in function.php of your theme.

    M

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘WhatsApp and script priority’ is closed to new replies.