PluginProbe
WPFunnels – Funnel Builder for WooCommerce with Checkout & One Click Upsell / 3.13.3
WPFunnels – Funnel Builder for WooCommerce with Checkout & One Click Upsell v3.13.3
3.13.3 3.13.2 3.13.1 3.13.0 3.12.13 3.12.12 3.12.11 3.12.10 3.12.9 3.12.8 3.12.7 3.12.6 3.12.5 3.12.4 3.12.3 3.12.1 3.12.2 3.12.0 3.11.1 3.11.0 3.10.9 3.10.8 3.10.7 3.10.6 2.8.16 All 261 releases
← All changes | admin/partials/dashboard-nav.php +14 -2 3.13.1 → 3.13.3 View file →
@@ -5,8 +5,13 @@
5 5 * @package
6 6 */
7 7 use WPFunnels\Wpfnl_functions;
8 8
9 +/*
10 + * `route` is for the screens that live in the React admin: they are all one
11 + * WordPress page with the screen in the hash, so a plain `page` would only
12 + * reach the dashboard. The entries without one are still their own page.
13 + */
9 14 $nav_menus = apply_filters('wpfnl_dashboard_nav_lists', [
10 15 'dashboard' => [
11 16 'title' => __('Dashboard', 'wpfnl'),
12 17 'icon' => 'dashboard-icon',
@@ -14,9 +19,10 @@
14 19 ],
15 20 'overview' => [
16 21 'title' => __('Funnels', 'wpfnl'),
17 22 'icon' => 'overview-icon',
18 - 'page' => WPFNL_FUNNEL_PAGE_SLUG,
23 + 'page' => WPFNL_MAIN_PAGE_SLUG,
24 + 'route' => '#/funnels',
19 25 ],
20 26 'store_checkout' => [
21 27 'title' => __('Store Checkout', 'wpfnl'),
22 28 'icon' => 'storewide-checkout-icon',
@@ -34,9 +40,10 @@
34 40 ],
35 41 'templates' => [
36 42 'title' => __('Templates', 'wpfnl'),
37 43 'icon' => 'templates-icon',
38 - 'page' => WPFNL_TEMPLATE_PAGE_SLUG,
44 + 'page' => WPFNL_MAIN_PAGE_SLUG,
45 + 'route' => '#/funnel-templates',
39 46 ],
40 47 // 'addons' => [
41 48 // 'title' => __('Add-ons', 'wpfnl'),
42 49 // 'icon' => 'addons-icon',
@@ -61,8 +68,13 @@
61 68 'page' => $menu['page'],
62 69 ],
63 70 admin_url('admin.php')
64 71 );
72 +
73 + if (!empty($menu['route'])) {
74 + $link .= $menu['route'];
75 + }
76 +
65 77 if($key === 'create_funnel') $link='#'; ?>
66 78
67 79 <li class="wpfnl-dashboard__nav-li <?php echo $key .' '. $active_class; ?>">
68 80 <a id="<?php echo "wpfnl-tab-".$key ?>" href="<?php echo esc_url($link); ?>">