Open
Conversation
…mutation by passing formId in payload.
…nify dashboard card buttons - Introduce `tutor_course_loop_button_class` filter to allow customization of button classes across all course loop templates - Replace hardcoded button classes in WooCommerce, EDD, Tutor, and course embed templates with the new filter - Add `tutor_dashboard_course_card_buttons()` function to centralize button rendering for dashboard cards - Update dashboard card templates to use the new function, removing duplicate buttons and improving consistency - Adjust dashboard progress card CSS to properly display the unified button actions - Ensure backward compatibility by maintaining default class values when filter is not used
…on function Replace the deprecated `tutor_dashboard_course_card_buttons` function with `tutor_course_action_button_backup` to provide consistent course action buttons. Remove the `tutor_course_loop_button_class` filter usage across templates and hardcode button classes for better performance and maintainability. The new function determines appropriate button text and URL based on course progress and completion state, including certificate download links for completed courses.
Remove hardcoded tutor_course_action_button_backup function and replace direct calls with do_action('tutor_course_action_btn'). Add new render_course_action_btn method in Course class to handle button rendering via hook.
Unused imports were cluttering the file and potentially causing confusion. This cleanup improves code readability and maintainability by removing unnecessary dependencies.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.