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

weglot_no_replace_a_href

Links whose href contains this string are left untouched during link replacement. The default is wp-content/uploads.

add_filter( 'weglot_no_replace_a_href', 'custom_weglot_no_replace_a_href' );
function custom_weglot_no_replace_a_href( $condition ) {
    return 'my-folder';
}