Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter mcnano

    (@mcnano)

    I know that I could disable Open Graph by using

    add_filter( 'jetpack_enable_open_graph', '__return_false' );

    but if I want still use those meta-tags, I need to know hot to encode email-addresses there.

    Plugin Author Till Krüss

    (@tillkruess)

    You can use the jetpack_open_graph_tags filter. I haven’t tested this, but something along those lines would do the trick:

    add_filter( 'jetpack_open_graph_tags', function( $tags ) {
        return array_map( 'eae_encode_emails', $tags );
    } );
    Thread Starter mcnano

    (@mcnano)

    Thanks, it really works 🙂

    Worked for me too!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘How to encode JetPack Meta-tags in header?’ is closed to new replies.