Filter to Change <link rel='canonical' ...>? (2 posts)

  1. KatePhiz
    Posted 6 years ago #

    I've some duplicate content so I need to replace the standard canonical rels but I cannot find a filter in the codex. Can anybody suggest what I can use please?

  2. DjZoNe
    Posted 5 years ago #

    Because, there is no such filter, nor action in the code.

    I ran into the some problem.
    The soulition I've found is to remove the "rel_canonical" filter from wp_head, and add my own filter to wp_head to generate the custom canonical URL.

Topic Closed

This topic has been closed to new replies.

About this Topic