Instructor Home Page ( Functionalities )#2329
Open
sanjana4khan wants to merge 153 commits into4.0.0-devfrom
Open
Instructor Home Page ( Functionalities )#2329sanjana4khan wants to merge 153 commits into4.0.0-devfrom
sanjana4khan wants to merge 153 commits into4.0.0-devfrom
Conversation
shewa12
reviewed
Feb 13, 2026
components/Tabs.php
Outdated
| * @since 4.0.0 | ||
| * @var string | ||
| */ | ||
| protected string $wrapper_class = ''; |
Collaborator
There was a problem hiding this comment.
Why do we need all these classes? All the classes we can directly put on HTML markup. If a particular tab design is different, then you don't need to use the component.
harunollyo
requested changes
Feb 16, 2026
|
|
||
| $complete_status = tutor_utils()->get_earnings_completed_statuses(); | ||
|
|
||
| $amount_type = is_admin() ? 'earnings.admin_amount' : 'earnings.instructor_amount'; |
Collaborator
There was a problem hiding this comment.
is_admin() does not check a user’s capabilities; it only verifies whether the current request is for the WordPress admin area. In this context, you should use TUTOR\User::is_admin() instead.
| $complete_status = tutor_utils()->get_earnings_completed_statuses(); | ||
|
|
||
| $amount_type = is_admin() ? 'earnings.admin_amount' : 'earnings.instructor_amount'; | ||
| $amount_rate = is_admin() ? 'earnings.admin_rate' : 'earnings.instructor_rate'; |
| * @since 4.0.0 | ||
| * | ||
| * @param array $top_courses List of course objects returned from analytics. | ||
| * @return array Formatted top performing courses data. |
Collaborator
There was a problem hiding this comment.
add a new line before return stmt comment.
| * @since 4.0.0 | ||
| * | ||
| * @param int $instructor_id Instructor (author) user ID. | ||
| * @return array List of upcoming live task posts. |
| * @since 4.0.0 | ||
| * | ||
| * @param array $upcoming_live_tasks List of live task post objects. | ||
| * @return array Formatted upcoming live tasks data. |
| * @link https://themeum.com | ||
| * @since 4.0.0 | ||
| */ | ||
|
|
| </div> | ||
| <ul class="tutor-user-profile-details"> | ||
| <li> | ||
| <?php echo esc_html__( 'Username', 'tutor-pro' ); ?> : |
| <span><?php echo esc_html( $student_details->user_login ); ?></span> | ||
| </li> | ||
| <li> | ||
| <?php echo esc_html__( 'Email', 'tutor-pro' ); ?> : |
| <span><?php echo esc_html( $student_details->user_email ); ?></span> | ||
| </li> | ||
| <li> | ||
| <?php echo esc_html__( 'Phone', 'tutor-pro' ); ?> : |
| </div> | ||
| <div class="tutor-profile-member-since"> | ||
| <?php tutor_utils()->render_svg_icon( Icon::MEMBER ); ?> | ||
| <?php echo esc_html__( 'Member since', 'tutor-pro' ); ?> |
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.