Skip to content

Conversation

@Anindra123
Copy link
Collaborator

Overview

In this pr I have moved the webinar and certificate page in learning area from free to pro as these are pro features. I have used the hook tutor_learning_area_sub_page_nav_item to add the two nav button of webinar and certificate from pro. Furthermore, I have used the structure templates > learning-area > subpage > webinar.php to create the templates in pro so in free I check the sub page if it has any of the pro template I make the is_pro flag to true which loads the template. I have also done some design fixes for webinar page in learning area.

@Anindra123 Anindra123 added the 4.0.0 Tutor v4.w0w label Jan 16, 2026
$is_pro = false;

// Pro subpages.
$pro_subpages = array( 'webinar', 'certificate' );
Copy link
Collaborator

Choose a reason for hiding this comment

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

We should manage this using hooks

}
}

&-body {
Copy link
Collaborator

Choose a reason for hiding this comment

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

Why not move this file to pro as well?


$menu_items = array(
'resources' => array(
'title' => esc_html__( 'Resources', 'tutor' ),
Copy link
Collaborator

Choose a reason for hiding this comment

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

We are not rendering. So do not use esc function. Use esc function only on rendering

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

4.0.0 Tutor v4.w0w

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants