weglot_get_slugs_cache_duration
This filter allow you to change the duration of cache we store the slugs. By default is setting to 0.
add_filter( 'weglot_get_slugs_cache_duration', 'custom_weglot_get_slugs_cache_duration' );
function custom_weglot_get_slugs_cache_duration( $duration ) {
return HOUR_IN_SECONDS;
}Last updated