Point help links at your own docs

Free2 min read

All guides

Lango7’s settings screens link to help on lango7.com. If you build sites for clients, you can point those links at your own docs.

The filter

lango7_help_url gets the URL and a topic key. Return the URL you want.

add_filter( 'lango7_help_url', function ( $url, $topic ) {
    if ( 'language-css' === $topic ) {
        return 'https://agency.example/help/language-css/';
    }
    return $url;
}, 10, 2 );

Put it in your child theme’s functions.php or a small plugin.

Topics

  • language-css: the “How to style each language” link in Translate → Settings.