| @@ -116,9 +116,9 @@ | ||
| 116 | 116 | 'action_type' => 'redirect', |
| 117 | 117 | 'action_data' => array( |
| 118 | 118 | 'url' => admin_url( 'admin.php?page=cartflows&path=flows' ), |
| 119 | 119 | ), |
| 120 | - 'learn_how' => esc_url( 'https://cartflows.com/docs/how-to-create-your-first-cartflows-funnel/?utm_source=dashboard&utm_medium=cartflows&utm_campaign=learn_how' ), | |
| 120 | + 'learn_how' => esc_url( \Cartflows_Helper::get_kb_doc_link( 'https://cartflows.com/docs/how-to-create-your-first-cartflows-funnel/', array( 'utm_campaign' => 'learn_how' ) ) ), | |
| 121 | 121 | 'is_pro' => false, |
| 122 | 122 | 'completed' => $this->is_module_completed( 'create-your-first-funnel', intval( wp_count_posts( CARTFLOWS_FLOW_POST_TYPE )->publish ) > 0, $completed_modules ), |
| 123 | 123 | ), |
| 124 | 124 | ), |
| @@ -137,9 +137,9 @@ | ||
| 137 | 137 | 'action_type' => 'redirect', |
| 138 | 138 | 'action_data' => array( |
| 139 | 139 | 'url' => admin_url( 'admin.php?page=cartflows&path=flows' ), |
| 140 | 140 | ), |
| 141 | - 'learn_how' => esc_url( 'https://cartflows.com/docs/editing-and-customising-funnel-steps/?utm_source=dashboard&utm_medium=cartflows&utm_campaign=learn_how' ), | |
| 141 | + 'learn_how' => esc_url( \Cartflows_Helper::get_kb_doc_link( 'https://cartflows.com/docs/editing-and-customising-funnel-steps/', array( 'utm_campaign' => 'learn_how' ) ) ), | |
| 142 | 142 | 'is_pro' => false, |
| 143 | 143 | 'completed' => $this->is_module_completed( 'edit-design-funnel-pages-steps', $this->has_step_been_edited(), $completed_modules ), |
| 144 | 144 | ), |
| 145 | 145 | ), |
| @@ -158,9 +158,9 @@ | ||
| 158 | 158 | 'action_type' => 'redirect', |
| 159 | 159 | 'action_data' => array( |
| 160 | 160 | 'url' => admin_url( 'edit.php?post_type=product' ), |
| 161 | 161 | ), |
| 162 | - 'learn_how' => esc_url( 'https://cartflows.com/docs/how-to-add-products-in-woocommerce/?utm_source=dashboard&utm_medium=cartflows&utm_campaign=learn_how' ), | |
| 162 | + 'learn_how' => esc_url( \Cartflows_Helper::get_kb_doc_link( 'https://cartflows.com/docs/how-to-add-products-in-woocommerce/', array( 'utm_campaign' => 'learn_how' ) ) ), | |
| 163 | 163 | 'is_pro' => false, |
| 164 | 164 | 'completed' => $this->is_module_completed( 'add-products', intval( wp_count_posts( 'product' )->publish ) > 0, $completed_modules ), |
| 165 | 165 | ), |
| 166 | 166 | array( |
| @@ -172,9 +172,9 @@ | ||
| 172 | 172 | 'action_type' => 'redirect', |
| 173 | 173 | 'action_data' => array( |
| 174 | 174 | 'url' => admin_url( 'admin.php?page=cartflows&path=flows' ), |
| 175 | 175 | ), |
| 176 | - 'learn_how' => esc_url( 'https://cartflows.com/docs/how-to-add-assign-products-to-a-checkout-step-in-cartflows/?utm_source=dashboard&utm_medium=cartflows&utm_campaign=learn_how' ), | |
| 176 | + 'learn_how' => esc_url( \Cartflows_Helper::get_kb_doc_link( 'https://cartflows.com/docs/how-to-add-assign-products-to-a-checkout-step-in-cartflows/', array( 'utm_campaign' => 'learn_how' ) ) ), | |
| 177 | 177 | 'is_pro' => false, |
| 178 | 178 | 'completed' => $this->is_module_completed( 'assign-products-to-checkout', $this->is_checkout_product_is_assigned(), $completed_modules ), |
| 179 | 179 | ), |
| 180 | 180 | ), |
| @@ -288,9 +288,9 @@ | ||
| 288 | 288 | 'action_type' => 'redirect', |
| 289 | 289 | 'action_data' => array( |
| 290 | 290 | 'url' => admin_url( 'admin.php?page=cartflows&path=flows' ), |
| 291 | 291 | ), |
| 292 | - 'learn_how' => esc_url( 'https://cartflows.com/docs/how-to-add-order-bumps-to-woocommerce-sales-funnel/?utm_source=dashboard&utm_medium=cartflows&utm_campaign=learn_how' ), | |
| 292 | + 'learn_how' => esc_url( \Cartflows_Helper::get_kb_doc_link( 'https://cartflows.com/docs/how-to-add-order-bumps-to-woocommerce-sales-funnel/', array( 'utm_campaign' => 'learn_how' ) ) ), | |
| 293 | 293 | 'is_pro' => ! _is_cartflows_pro(), |
| 294 | 294 | 'completed' => $this->is_module_completed( 'add-order-bump', $this->has_published_order_bump(), $completed_modules ), |
| 295 | 295 | ), |
| 296 | 296 | array( |
| @@ -302,9 +302,9 @@ | ||
| 302 | 302 | 'action_type' => 'redirect', |
| 303 | 303 | 'action_data' => array( |
| 304 | 304 | 'url' => admin_url( 'admin.php?page=cartflows&path=flows' ), |
| 305 | 305 | ), |
| 306 | - 'learn_how' => esc_url( 'https://cartflows.com/docs/how-to-create-one-click-upsell-and-downsell-offers-in-cartflows/?utm_source=dashboard&utm_medium=cartflows&utm_campaign=learn_how' ), | |
| 306 | + 'learn_how' => esc_url( \Cartflows_Helper::get_kb_doc_link( 'https://cartflows.com/docs/how-to-create-one-click-upsell-and-downsell-offers-in-cartflows/', array( 'utm_campaign' => 'learn_how' ) ) ), | |
| 307 | 307 | 'is_pro' => ! _is_cartflows_pro(), |
| 308 | 308 | 'completed' => $this->is_module_completed( 'setup-upsell-downsell-offers', $this->has_published_offer_step(), $completed_modules ), |
| 309 | 309 | ), |
| 310 | 310 | ), |