A user referenced this thread regarding problems with translating course slugs, and discovered a solution.
They changed priority from 100 to 10 for initialization of the "course" CPT, and they were able to translate the slug:
add_action( 'init', array( $this, 'setup_course_post_type' ), 10 );
Internal reference: 1744700-zen
I was kindly asked to add something about this issue, so here I am :-)
I just installed Sensei on a private staging site (and will remove it as soon as the test is finished), to do the tests. I disabled the other plugins and only left WC, Sensei and WPML (with its addon WPML String Translation).
I have only English (default) and Italian languages active in WPML.
How to reproduce the issue:
How to "fix" the issue:
add_action( 'init', array( $this, 'setup_course_post_type' ), 100 );Done. Now, back into WPML settings, I'm able to change course's slug without any warning or error. This should be done for Lessons, too, of course.
I really hope this helps :-)
Erenor.
We should probably have people use the provided filter for now:
add_filter( 'sensei_course_slug', function() {
return 'curso';
} );