Skip to content

Commit

Permalink
get pro menu link update
Browse files Browse the repository at this point in the history
  • Loading branch information
harunollyo committed Sep 12, 2023
1 parent 07cfcdd commit 0370544
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions assets/react/admin-dashboard/tutor-admin.js
Original file line number Diff line number Diff line change
Expand Up @@ -514,4 +514,18 @@ jQuery(document).ready(function($) {
let tableHeight = jQuery('.tutor-table-responsive .tutor-table').height()
jQuery('.tutor-table-responsive').css('min-height', tableHeight + 110)
}

/**
* Set get pro link
* @since 2.2.5
*/
const getProMenu = document.querySelector('span.tutor-get-pro-text')
if (getProMenu?.parentElement?.nodeName === 'A') {
const el = getProMenu.parentElement;
const link = 'https://www.themeum.com/product/tutor-lms/pricing?utm_source=tutor_plugin_get_pro_page&utm_medium=wordpress_dashboard&utm_campaign=go_premium';

el.setAttribute('href', link)
el.setAttribute('target', '_blank')
}

});

0 comments on commit 0370544

Please sign in to comment.