Support » Plugin: Multisite Language Switcher » Filter to deactivate hreflang tags

  • Resolved mattce

    (@mattce)


    Hi Dennis,
    is there a way to deactivate the hreflang output temporarily? I found this filter:

    remove_action( ‘wp_head’, [ lloc\Msls\MslsPlugin::class, ‘print_alternate_links’ ] );

    but it doesn’t seem to work, the hreflang output still appears in the head section of my site. Any alternatives? I need to remove them temporarily, but we still want to be able to work on setting the alternates in the backend, so deactivating the plugin on the subsites would be no solution, deactivating this output would suit our needs better. 🙂
    Thanks for your support!

Viewing 7 replies - 1 through 7 (of 7 total)
Viewing 7 replies - 1 through 7 (of 7 total)
  • You must be logged in to reply to this topic.