Describe the bug
The protected content message appears twice on course pages when BOTH Yoast SEO and Elementor are active.
Replicated with both default Courses module and LearnDash module.
To Reproduce
Steps to reproduce the behavior:
- Create a course and restrict it to a membership.
- Activate Elementor and Yoast SEO plugins.
- Visit the restricted course page.
- See that protected content message appears twice.
Observe that the message appears once as expected if either Elementor or Yoast SEO is deactivated.
Screenshots

Expected behavior
Protected content message appears once on course pages.
Isolating the problem (mark completed items with an [x]):
WordPress Environment
WP 7.0
PMPro 3.7.4
PMPro - Courses for Membership Add On 2.1.1
Elementor 4.1.1
Yoast SEO 27.7
A snippet workaround: https://gist.github.com/dwanjuki/d38a093214a0fb65dc094140867e61b1
Describe the bug
The protected content message appears twice on course pages when BOTH Yoast SEO and Elementor are active.
Replicated with both default Courses module and LearnDash module.
To Reproduce
Steps to reproduce the behavior:
Observe that the message appears once as expected if either Elementor or Yoast SEO is deactivated.
Screenshots

Expected behavior
Protected content message appears once on course pages.
Isolating the problem (mark completed items with an [x]):
WordPress Environment
WP 7.0
PMPro 3.7.4
PMPro - Courses for Membership Add On 2.1.1
Elementor 4.1.1
Yoast SEO 27.7
A snippet workaround: https://gist.github.com/dwanjuki/d38a093214a0fb65dc094140867e61b1