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

weglot_get_options

Lets you modify the complete options array Weglot builds for the request.

add_filter( 'weglot_get_options', 'custom_weglot_get_options' );
function custom_weglot_get_options( $options ) {
    // modify $options
    return $options;
}