Skip to content

Conversation

b-l-i-n-d
Copy link
Collaborator

Moved Certificate import to shared components and updated its usage to pass currentCertificateKey, onSelect handler, and certificateTemplates props. This enables certificate selection and template management in the Additional page.

Deleted Certificate, CertificateCard, CertificateEmptyState, and CertificatePreviewModal components from the course builder. This change likely reflects a refactor or removal of certificate-related functionality from the course builder UI.
Introduces Certificate, CertificateCard, and CertificateEmptyState components for managing certificate templates and custom certificates. Also adds CertificatePreviewModal for previewing and selecting certificates within a modal dialog.
Replaces the local Certificate interface definition with an imported type from another module to improve type consistency and reduce duplication.
Introduces a new Certificate interface to define the structure for certificate objects, including fields for name, orientation, URLs, preview, background, key, and optional properties. This will help standardize certificate data usage across the application.
Moved Certificate import to shared components and updated its usage to pass currentCertificateKey, onSelect handler, and certificateTemplates props. This enables certificate selection and template management in the Additional page.
@b-l-i-n-d b-l-i-n-d added the 3.9.0 Tutor v3.9.0 label Sep 12, 2025
@b-l-i-n-d b-l-i-n-d changed the title ✨ Certificates in cours bundle ✨ Moved Certificate to shared for reusability Sep 12, 2025
@sazedul-haque sazedul-haque changed the title ✨ Moved Certificate to shared for reusability ✨ Certificate added to course bundles Sep 18, 2025
Extended get_courses_by_user and get_active_courses_by_user to accept an $args parameter for overriding default query arguments. Added related filters and standardized post_type assignment for improved extensibility and consistency.
*
* @return bool|\WP_Query
*/
public function get_courses_by_user( $user_id = 0, $offset = 0, $posts_per_page = -1 ) {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Need to refactor this method.

@shewa12 shewa12 merged commit 65af648 into 3.9.0 Oct 8, 2025
10 of 13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

3.9.0 Tutor v3.9.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants