This file contains 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
const path = require( 'path' ); | |
const MiniCssExtractPlugin = require( 'mini-css-extract-plugin' ); | |
const TerserPlugin = require( 'terser-webpack-plugin' ); | |
const CssMinimizerPlugin = require( 'css-minimizer-webpack-plugin' ); | |
const { CleanWebpackPlugin } = require( 'clean-webpack-plugin' ); | |
// JS Directory path. | |
const JS_DIR = path.resolve( __dirname, 'assets/src/js' ); | |
const BUILD_DIR = path.resolve( __dirname, 'assets/build' ); | |
module.exports = function ( env, options ) { |
This file contains 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
<ul class="tutor-dashboard-permalinks"> | |
<?php | |
$dashboard_pages = tutils()->tutor_dashboard_nav_ui_items(); | |
foreach ($dashboard_pages as $dashboard_key => $dashboard_page) { | |
$menu_title = $dashboard_page; | |
$menu_link = tutils()->get_tutor_dashboard_page_permalink($dashboard_key); | |
$separator = false; | |
if (is_array($dashboard_page)){ | |
$menu_title = tutils()->array_get('title', $dashboard_page); | |
//Add new menu item property "url" for custom link |