For the complete documentation index, see llms.txt. This page is also available as Markdown.

weglot_css_custom_inline

Append your own CSS rules to the switcher without going through the settings page.

add_filter( 'weglot_css_custom_inline', 'custom_weglot_css_custom_inline' );
function custom_weglot_css_custom_inline( $css ) {
    $css .= '.country-selector { background: #000; }';
    return $css;
}