You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Why is this here? Should this // Test code be here?
It breaks my ability to override the enroll button template file with a custom override file that exists in my theme. The return line at line 188 prevents the code further down the function which checks for custom theme template override files.
The text was updated successfully, but these errors were encountered:
We need to improve the old code that has existed for a very long time. To fix some cases where the developer overrides files, we have encountered errors such as when we want to change variables or logic. The overridden file cannot adopt these new changes, it always retains the old logic and variables, making it difficult to control all override cases via files, which can lead to Fatal errors.
In the new code, we are changing the way we override templates. Developers should use the hooks provided by LearnPress instead of overriding files. This approach makes it easier to debug, maintain, and update the code.
learnpress/inc/templates/class-lp-template-course.php
Lines 183 to 189 in c074324
Why is this here? Should this
// Test
code be here?It breaks my ability to override the enroll button template file with a custom override file that exists in my theme. The return line at line 188 prevents the code further down the function which checks for custom theme template override files.
The text was updated successfully, but these errors were encountered: