New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
WPML: Fix usage of question categories in translated quizzes #7559
Conversation
* @param {int} $page_id Course completed page ID. | ||
* @return {int} Course completed page ID. | ||
*/ | ||
$page_id = apply_filters( 'sensei_course_completed_page_id', $page_id ); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The only manual change in this file.
The rest is the result of vendor/bin/phpcbf
Test the previous changes of this PR with WordPress Playground. |
Test the previous changes of this PR with WordPress Playground. |
Co-authored-by: Imran Hossain <imranh920@gmail.com>
3e4cdf4
to
42aca07
Compare
Test the previous changes of this PR with WordPress Playground. |
WordPress Dependencies ReportThe No changes detected in the current commit. But the comment was left so it is possible to check for the edit history. This comment was automatically generated by the |
Test the previous changes of this PR with WordPress Playground. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I was able to get the translated questions from the category, so works for me. 👍
Test the previous changes of this PR with WordPress Playground. |
Test the previous changes of this PR with WordPress Playground. |
Resolves #7537
Here I process the multiple question post type:
In this PR I also addressed an issue with redirect on lesson translation: I added a filter and try to return the translated page there.
Unfortunately, questions are not translated automatically. (You can see these strings in the WPML translation editor, but they don't appear in the translated lesson.)
For now, the user has to translate them manually in lessons: open the translated lesson in the WordPress editor and change texts for questions.
Proposed Changes
Testing Instructions
New/Updated Hooks
sensei_course_completed_page_id
— Filter course completed page ID.Pre-Merge Checklist