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

weglot_get_option

Lets you change the value of a single option, identified by its key.

add_filter( 'weglot_get_option', 'custom_weglot_get_option', 10, 3 );
function custom_weglot_get_option( $value, $key, $options ) {
    if ( 'auto_redirect' === $key ) {
        return false;
    }
    return $value;
}