Forum Replies Created

Viewing 1 replies (of 1 total)
  • Hi @bheligman

    There’s anothers topics about this but no one tell how to do this.
    I look the documentation and trying / get wrong until get right ??

    // insert this code at your functions.php file

    // define the pll_rel_hreflang_attributes callback
    function filter_pll_rel_hreflang_attributes( $hreflangs ) {
    // for default plugin returns hreflang tags, returning nothing plugin dont write the tags ??
    //return $hreflangs;
    };

    // add the filter
    add_filter( ‘pll_rel_hreflang_attributes’, ‘filter_pll_rel_hreflang_attributes’, 10, 1 );

Viewing 1 replies (of 1 total)